Explorar el Código

Merge pull request #2444 from frabbit/patch-6

Added missing require metadata for typeExpr
Simon Krajewski hace 11 años
padre
commit
0d06e06bb0
Se han modificado 1 ficheros con 2 adiciones y 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
 
-}
+}