@@ -0,0 +1,17 @@
+package unit.issues;
+
+#if js
+private typedef PathSimple = haxe.extern.EitherType<String,js.RegExp>;
+private typedef Path = haxe.extern.EitherType<PathSimple,Array<PathSimple>>;
+#end
+class Issue3499 extends Test {
+ #if js
+ function test() {
+ var a:Path = ["", new js.RegExp("")];
+ eq("", a[0]);
+ }
+ #end
+}