Explorar o código

Added missing require metadata for typeExpr

frabbit %!s(int64=11) %!d(string=hai) anos
pai
achega
35279f4dd9
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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
 
-}
+}