浏览代码

Fix module resolution (#228)

See https://github.com/HaxeFoundation/haxe/issues/11187
Rudy Ges 1 年之前
父节点
当前提交
76139e8b75
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/impl/Macros.hx

+ 1 - 1
hrt/impl/Macros.hx

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