Browse Source

Fix module resolution (#228)

See https://github.com/HaxeFoundation/haxe/issues/11187
Rudy Ges 1 year ago
parent
commit
76139e8b75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hrt/impl/Macros.hx

+ 1 - 1
hrt/impl/Macros.hx

@@ -13,7 +13,7 @@ class Macros {
 		};
 
 		if (value == null) {
-			var defaultConstructors = Type.allEnums(e);
+			var defaultConstructors = std.Type.allEnums(e);
 			if (defaultConstructors.length > 0) value = defaultConstructors[0];
 		}