瀏覽代碼

fixes issue #3389

Ingo Jakobs 11 年之前
父節點
當前提交
78f69f1209
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/cs/_std/Type.hx

+ 1 - 1
std/cs/_std/Type.hx

@@ -284,7 +284,7 @@ import cs.internal.Runtime;
 	public static function getEnumConstructs( e : Enum<Dynamic> ) : Array<String> {
 		if (Reflect.hasField(e, "constructs"))
 			return untyped e.constructs.copy();
-		return cs.Lib.array(cs.system.Enum.GetNames(cs.Lib.nativeType(e)));
+		return cs.Lib.array(cs.system.Enum.GetNames(untyped e));
 	}
 
 	@:functionCode('