ソースを参照

Added missing require metadata for typeExpr

frabbit 11 年 前
コミット
35279f4dd9
1 ファイル変更2 行追加1 行削除
  1. 2 1
      std/haxe/macro/Context.hx

+ 2 - 1
std/haxe/macro/Context.hx

@@ -302,6 +302,7 @@ class Context {
 		Typing the expression may result in an compiler error which can be
 		caught using `try ... catch`.
 	**/
+	@:require(haxe_ver >= 3.01)
 	public static function typeExpr( e : Expr ) : TypedExpr {
 		return load("type_expr", 1)(e);
 	}
@@ -432,4 +433,4 @@ class Context {
 
 #end
 
-}
+}