Browse Source

allow `null` for kind in `EFunction(kind, fn)`

Aleksandr Kuzmenko 6 years ago
parent
commit
1ea1f1f322
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/haxe/macro/Expr.hx

+ 1 - 1
std/haxe/macro/Expr.hx

@@ -470,7 +470,7 @@ enum ExprDef {
 	/**
 		A function declaration.
 	**/
-	EFunction(kind:FunctionKind, f:Function);
+	EFunction(kind:Null<FunctionKind>, f:Function);
 
 	/**
 		A block of expressions `{exprs}`.