瀏覽代碼

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

Aleksandr Kuzmenko 6 年之前
父節點
當前提交
1ea1f1f322
共有 1 個文件被更改,包括 1 次插入1 次删除
  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}`.