Skip to content

Commit

Permalink
allow using abstracts as value if they have @:runtimeValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Mar 2, 2015
1 parent be21918 commit 99efbe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filters.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ open Typecore
let rec verify_ast e = match e.eexpr with
| TField(_) ->
()
| TTypeExpr(TClassDecl {cl_kind = KAbstractImpl _}) ->
| TTypeExpr(TClassDecl {cl_kind = KAbstractImpl a}) when not (Meta.has Meta.RuntimeValue a.a_meta) ->
error "Cannot use abstract as value" e.epos
| _ ->
Type.iter verify_ast e
Expand Down

0 comments on commit 99efbe1

Please sign in to comment.