@@ -270,6 +270,7 @@ class Test #if swf_mark implements mt.Protect #end {
new TestMatch(),
#end
new TestSpecification(),
+ new unit.issues.TestIssues(),
#if cs
new TestCSharp(),
@@ -0,0 +1,9 @@
+var v1:E1 = A(1);
+var v2 = A("foo");
+var v3:E1 = B;
+var v4 = B;
+
+Type.getEnum(v1) == E1;
+Type.getEnum(v2) == E2;
+Type.getEnum(v3) == E1;
+Type.getEnum(v4) == E2;
@@ -0,0 +1,18 @@
+package unit.issues;
+enum E1 {
+ A(i:Int);
+ B;
+}
+enum E2 {
+ A(s:String);
+#if !macro
+@:build(unit.UnitBuilder.build("issues", ".issue.hx"))
+#end
+class TestIssues extends Test {