فهرست منبع

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
 
-}
+}