diff --git a/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..ce0e939a0
--- /dev/null
+++ b/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/config b/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/config
new file mode 100644
index 000000000..166868c18
--- /dev/null
+++ b/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/config
@@ -0,0 +1,11 @@
+nondexFilter=.*
+nondexMode=FULL
+nondexSeed=1016066
+nondexStart=0
+nondexEnd=9223372036854775807
+nondexPrintstack=false
+nondexDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexJarDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexExecid=ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=
+nondexLogging=CONFIG
+test=
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..2b859e4dd
--- /dev/null
+++ b/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.917 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.853 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/failures b/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/failures
new file mode 100644
index 000000000..e69de29bb
diff --git a/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/invocations b/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/invocations
new file mode 100644
index 000000000..f82b8d606
--- /dev/null
+++ b/typescript-generator-core/.nondex/ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=/invocations
@@ -0,0 +1,2 @@
+COUNT:1448
+SHUFFLES:1447
diff --git a/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..5019d6d0d
--- /dev/null
+++ b/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/config b/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/config
new file mode 100644
index 000000000..cef0c2843
--- /dev/null
+++ b/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/config
@@ -0,0 +1,11 @@
+nondexFilter=.*
+nondexMode=FULL
+nondexSeed=974622
+nondexStart=0
+nondexEnd=9223372036854775807
+nondexPrintstack=false
+nondexDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexJarDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexExecid=JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=
+nondexLogging=CONFIG
+test=
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..0f6b277d5
--- /dev/null
+++ b/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.364 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 1.174 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/failures b/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/failures
new file mode 100644
index 000000000..e69de29bb
diff --git a/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/invocations b/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/invocations
new file mode 100644
index 000000000..6fb368548
--- /dev/null
+++ b/typescript-generator-core/.nondex/JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=/invocations
@@ -0,0 +1,2 @@
+COUNT:1447
+SHUFFLES:1447
diff --git a/typescript-generator-core/.nondex/LATEST b/typescript-generator-core/.nondex/LATEST
new file mode 100644
index 000000000..58c585260
--- /dev/null
+++ b/typescript-generator-core/.nondex/LATEST
@@ -0,0 +1,4 @@
+hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=
+JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=
+ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=
+clean_PYznYfLelmlHaNfNhmmB1S2HU6qTLfP6gU1EwzvzDWM=
diff --git a/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..784775ce8
--- /dev/null
+++ b/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/config b/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/config
new file mode 100644
index 000000000..1c892a64c
--- /dev/null
+++ b/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/config
@@ -0,0 +1,11 @@
+nondexFilter=.*
+nondexMode=FULL
+nondexSeed=1016066
+nondexStart=0
+nondexEnd=9223372036854775807
+nondexPrintstack=false
+nondexDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexJarDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexExecid=NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=
+nondexLogging=CONFIG
+test=
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..6f5387d51
--- /dev/null
+++ b/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.632 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.596 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/failures b/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/failures
new file mode 100644
index 000000000..e69de29bb
diff --git a/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/invocations b/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/invocations
new file mode 100644
index 000000000..92b43ff04
--- /dev/null
+++ b/typescript-generator-core/.nondex/NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=/invocations
@@ -0,0 +1,2 @@
+COUNT:1448
+SHUFFLES:1448
diff --git a/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..637dc9b6d
--- /dev/null
+++ b/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ height: number;
+ width: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/config b/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/config
new file mode 100644
index 000000000..8c09ef1b5
--- /dev/null
+++ b/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/config
@@ -0,0 +1,11 @@
+nondexFilter=.*
+nondexMode=FULL
+nondexSeed=1016066
+nondexStart=0
+nondexEnd=9223372036854775807
+nondexPrintstack=false
+nondexDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexJarDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexExecid=Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=
+nondexLogging=CONFIG
+test=
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..44e0f4819
--- /dev/null
+++ b/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.437 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.413 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ height: number;
+ width: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/failures b/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/failures
new file mode 100644
index 000000000..c6496b318
--- /dev/null
+++ b/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/failures
@@ -0,0 +1 @@
+cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
diff --git a/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/invocations b/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/invocations
new file mode 100644
index 000000000..92b43ff04
--- /dev/null
+++ b/typescript-generator-core/.nondex/Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=/invocations
@@ -0,0 +1,2 @@
+COUNT:1448
+SHUFFLES:1448
diff --git a/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=.run b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=.run
new file mode 100644
index 000000000..80d951549
--- /dev/null
+++ b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=.run
@@ -0,0 +1,4 @@
+WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=
+hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=
+kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=
+clean_t7n+pFzmXYUXnzTW0fdEIZMAWjYbBkk+DoLVcKYOT+s=
diff --git a/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..4396eda6f
--- /dev/null
+++ b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/config b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/config
new file mode 100644
index 000000000..1fade0288
--- /dev/null
+++ b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/config
@@ -0,0 +1,11 @@
+nondexFilter=.*
+nondexMode=FULL
+nondexSeed=933178
+nondexStart=0
+nondexEnd=9223372036854775807
+nondexPrintstack=false
+nondexDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexJarDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexExecid=WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=
+nondexLogging=CONFIG
+test=
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..eaab0b8e4
--- /dev/null
+++ b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.596 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.569 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/failures b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/failures
new file mode 100644
index 000000000..e69de29bb
diff --git a/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/invocations b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/invocations
new file mode 100644
index 000000000..4fa0e8607
--- /dev/null
+++ b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/invocations
@@ -0,0 +1,2 @@
+COUNT:1449
+SHUFFLES:1448
diff --git a/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/test_results.html b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/test_results.html
new file mode 100644
index 000000000..c0eab7fc3
--- /dev/null
+++ b/typescript-generator-core/.nondex/WGrbzqneNcXdVLQcjje+v7mY+1GrhcWH8XUwviVsU=/test_results.html
@@ -0,0 +1 @@
+
Test Results| Test Name | 933178 | 974622 | 1016066 |
|---|
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/clean_PYznYfLelmlHaNfNhmmB1S2HU6qTLfP6gU1EwzvzDWM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_PYznYfLelmlHaNfNhmmB1S2HU6qTLfP6gU1EwzvzDWM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..594abc788
--- /dev/null
+++ b/typescript-generator-core/.nondex/clean_PYznYfLelmlHaNfNhmmB1S2HU6qTLfP6gU1EwzvzDWM=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/clean_PYznYfLelmlHaNfNhmmB1S2HU6qTLfP6gU1EwzvzDWM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_PYznYfLelmlHaNfNhmmB1S2HU6qTLfP6gU1EwzvzDWM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..502fd5b30
--- /dev/null
+++ b/typescript-generator-core/.nondex/clean_PYznYfLelmlHaNfNhmmB1S2HU6qTLfP6gU1EwzvzDWM=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.535 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.493 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/clean_PYznYfLelmlHaNfNhmmB1S2HU6qTLfP6gU1EwzvzDWM=/failures b/typescript-generator-core/.nondex/clean_PYznYfLelmlHaNfNhmmB1S2HU6qTLfP6gU1EwzvzDWM=/failures
new file mode 100644
index 000000000..c6496b318
--- /dev/null
+++ b/typescript-generator-core/.nondex/clean_PYznYfLelmlHaNfNhmmB1S2HU6qTLfP6gU1EwzvzDWM=/failures
@@ -0,0 +1 @@
+cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
diff --git a/typescript-generator-core/.nondex/clean_UDPGUkpRXEgIXqbCJ82YYpAEqnHACZR4N1SFZl97c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_UDPGUkpRXEgIXqbCJ82YYpAEqnHACZR4N1SFZl97c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..d04c018ff
--- /dev/null
+++ b/typescript-generator-core/.nondex/clean_UDPGUkpRXEgIXqbCJ82YYpAEqnHACZR4N1SFZl97c=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/clean_UDPGUkpRXEgIXqbCJ82YYpAEqnHACZR4N1SFZl97c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_UDPGUkpRXEgIXqbCJ82YYpAEqnHACZR4N1SFZl97c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..3638d09dc
--- /dev/null
+++ b/typescript-generator-core/.nondex/clean_UDPGUkpRXEgIXqbCJ82YYpAEqnHACZR4N1SFZl97c=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.338 s -- in cz.habarta.typescript.generator.TaggedUnionsTest
diff --git a/typescript-generator-core/.nondex/clean_t7n+pFzmXYUXnzTW0fdEIZMAWjYbBkk+DoLVcKYOT+s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_t7n+pFzmXYUXnzTW0fdEIZMAWjYbBkk+DoLVcKYOT+s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..5f7c2936a
--- /dev/null
+++ b/typescript-generator-core/.nondex/clean_t7n+pFzmXYUXnzTW0fdEIZMAWjYbBkk+DoLVcKYOT+s=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/clean_t7n+pFzmXYUXnzTW0fdEIZMAWjYbBkk+DoLVcKYOT+s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_t7n+pFzmXYUXnzTW0fdEIZMAWjYbBkk+DoLVcKYOT+s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..19d264a8e
--- /dev/null
+++ b/typescript-generator-core/.nondex/clean_t7n+pFzmXYUXnzTW0fdEIZMAWjYbBkk+DoLVcKYOT+s=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.626 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.589 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/clean_t7n+pFzmXYUXnzTW0fdEIZMAWjYbBkk+DoLVcKYOT+s=/failures b/typescript-generator-core/.nondex/clean_t7n+pFzmXYUXnzTW0fdEIZMAWjYbBkk+DoLVcKYOT+s=/failures
new file mode 100644
index 000000000..c6496b318
--- /dev/null
+++ b/typescript-generator-core/.nondex/clean_t7n+pFzmXYUXnzTW0fdEIZMAWjYbBkk+DoLVcKYOT+s=/failures
@@ -0,0 +1 @@
+cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
diff --git a/typescript-generator-core/.nondex/clean_u+zUj5PePoee5pJo+zV6M4seNtDMUPpOAx9PoXKQBaA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/clean_u+zUj5PePoee5pJo+zV6M4seNtDMUPpOAx9PoXKQBaA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..e81615d37
--- /dev/null
+++ b/typescript-generator-core/.nondex/clean_u+zUj5PePoee5pJo+zV6M4seNtDMUPpOAx9PoXKQBaA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/clean_u+zUj5PePoee5pJo+zV6M4seNtDMUPpOAx9PoXKQBaA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/clean_u+zUj5PePoee5pJo+zV6M4seNtDMUPpOAx9PoXKQBaA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..f3679c405
--- /dev/null
+++ b/typescript-generator-core/.nondex/clean_u+zUj5PePoee5pJo+zV6M4seNtDMUPpOAx9PoXKQBaA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.609 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.574 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/clean_u+zUj5PePoee5pJo+zV6M4seNtDMUPpOAx9PoXKQBaA=/failures b/typescript-generator-core/.nondex/clean_u+zUj5PePoee5pJo+zV6M4seNtDMUPpOAx9PoXKQBaA=/failures
new file mode 100644
index 000000000..c6496b318
--- /dev/null
+++ b/typescript-generator-core/.nondex/clean_u+zUj5PePoee5pJo+zV6M4seNtDMUPpOAx9PoXKQBaA=/failures
@@ -0,0 +1 @@
+cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
diff --git a/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=.run b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=.run
new file mode 100644
index 000000000..855f1e5dd
--- /dev/null
+++ b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=.run
@@ -0,0 +1,4 @@
+dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=
+yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=
+Q0T29HkrgrZ7oj87Xxr1aZ8PI1Rs7zzKE60t4LgR6s=
+clean_UDPGUkpRXEgIXqbCJ82YYpAEqnHACZR4N1SFZl97c=
diff --git a/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..9869233f6
--- /dev/null
+++ b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ height: number;
+ width: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/config b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/config
new file mode 100644
index 000000000..ccda724c5
--- /dev/null
+++ b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/config
@@ -0,0 +1,11 @@
+nondexFilter=.*
+nondexMode=FULL
+nondexSeed=933178
+nondexStart=0
+nondexEnd=9223372036854775807
+nondexPrintstack=false
+nondexDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexJarDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexExecid=dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=
+nondexLogging=CONFIG
+test=
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..58a8e3ea0
--- /dev/null
+++ b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.461 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.449 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ height: number;
+ width: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/failures b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/failures
new file mode 100644
index 000000000..c6496b318
--- /dev/null
+++ b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/failures
@@ -0,0 +1 @@
+cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces
diff --git a/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/invocations b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/invocations
new file mode 100644
index 000000000..f82b8d606
--- /dev/null
+++ b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/invocations
@@ -0,0 +1,2 @@
+COUNT:1448
+SHUFFLES:1447
diff --git a/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/test_results.html b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/test_results.html
new file mode 100644
index 000000000..7f0e03640
--- /dev/null
+++ b/typescript-generator-core/.nondex/dNYV7IlbQAcBR4S2eYTCs0BxXJ0FBHWzAKSzm22XaCE=/test_results.html
@@ -0,0 +1 @@
+Test Results| Test Name | 933178 | 974622 | 1016066 |
|---|
| cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces | ✖ | ✔ | ✖ |
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..f16aa9977
--- /dev/null
+++ b/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/config b/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/config
new file mode 100644
index 000000000..9be03037e
--- /dev/null
+++ b/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/config
@@ -0,0 +1,11 @@
+nondexFilter=.*
+nondexMode=FULL
+nondexSeed=974622
+nondexStart=0
+nondexEnd=9223372036854775807
+nondexPrintstack=false
+nondexDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexJarDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexExecid=hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=
+nondexLogging=CONFIG
+test=
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..bac720128
--- /dev/null
+++ b/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.644 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.604 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/failures b/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/failures
new file mode 100644
index 000000000..e69de29bb
diff --git a/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/invocations b/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/invocations
new file mode 100644
index 000000000..6fb368548
--- /dev/null
+++ b/typescript-generator-core/.nondex/hjoNudiirQkY3EWfHhbdWWi23YVfhpXhiQnrWzdbvE=/invocations
@@ -0,0 +1,2 @@
+COUNT:1447
+SHUFFLES:1447
diff --git a/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=.run b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=.run
new file mode 100644
index 000000000..58c585260
--- /dev/null
+++ b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=.run
@@ -0,0 +1,4 @@
+hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=
+JRstJ2kiKwSW9UfOlCZBhX8JkfjzJQVvY6GIWk+Ovs=
+ALKuf13NGeGGk9NE7OxgApt1pejUWrYuBeXUTWy6a+U=
+clean_PYznYfLelmlHaNfNhmmB1S2HU6qTLfP6gU1EwzvzDWM=
diff --git a/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..3c08b9f71
--- /dev/null
+++ b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/config b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/config
new file mode 100644
index 000000000..e6919ea2c
--- /dev/null
+++ b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/config
@@ -0,0 +1,11 @@
+nondexFilter=.*
+nondexMode=FULL
+nondexSeed=933178
+nondexStart=0
+nondexEnd=9223372036854775807
+nondexPrintstack=false
+nondexDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexJarDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexExecid=hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=
+nondexLogging=CONFIG
+test=
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..40572c555
--- /dev/null
+++ b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.696 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.664 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/failures b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/failures
new file mode 100644
index 000000000..e69de29bb
diff --git a/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/invocations b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/invocations
new file mode 100644
index 000000000..e4b80b596
--- /dev/null
+++ b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/invocations
@@ -0,0 +1,2 @@
+COUNT:1448
+SHUFFLES:1446
diff --git a/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/test_results.html b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/test_results.html
new file mode 100644
index 000000000..c0eab7fc3
--- /dev/null
+++ b/typescript-generator-core/.nondex/hpyDWeNacZEEEUxVPHWf9ZEWVbKw75bqucq9MzjR3g=/test_results.html
@@ -0,0 +1 @@
+Test Results| Test Name | 933178 | 974622 | 1016066 |
|---|
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=.run b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=.run
new file mode 100644
index 000000000..1af0055f5
--- /dev/null
+++ b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=.run
@@ -0,0 +1,4 @@
+ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=
+swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=
+NTAkD3NKfkSuzgUjtpN6esD+UsheGtI7qmHG0zIsLk=
+clean_u+zUj5PePoee5pJo+zV6M4seNtDMUPpOAx9PoXKQBaA=
diff --git a/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..ea2fa5753
--- /dev/null
+++ b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/config b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/config
new file mode 100644
index 000000000..1fe61455e
--- /dev/null
+++ b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/config
@@ -0,0 +1,11 @@
+nondexFilter=.*
+nondexMode=FULL
+nondexSeed=933178
+nondexStart=0
+nondexEnd=9223372036854775807
+nondexPrintstack=false
+nondexDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexJarDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexExecid=ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=
+nondexLogging=CONFIG
+test=
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..c0c65775f
--- /dev/null
+++ b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.662 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.632 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/failures b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/failures
new file mode 100644
index 000000000..e69de29bb
diff --git a/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/invocations b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/invocations
new file mode 100644
index 000000000..f82b8d606
--- /dev/null
+++ b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/invocations
@@ -0,0 +1,2 @@
+COUNT:1448
+SHUFFLES:1447
diff --git a/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/test_results.html b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/test_results.html
new file mode 100644
index 000000000..c0eab7fc3
--- /dev/null
+++ b/typescript-generator-core/.nondex/ip79R7gMancI6EPE+G9p42L1G9mBWKQoat+GrD0LVlU=/test_results.html
@@ -0,0 +1 @@
+Test Results| Test Name | 933178 | 974622 | 1016066 |
|---|
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..4fbc3bd6a
--- /dev/null
+++ b/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/config b/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/config
new file mode 100644
index 000000000..b891a6eef
--- /dev/null
+++ b/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/config
@@ -0,0 +1,11 @@
+nondexFilter=.*
+nondexMode=FULL
+nondexSeed=1016066
+nondexStart=0
+nondexEnd=9223372036854775807
+nondexPrintstack=false
+nondexDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexJarDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexExecid=kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=
+nondexLogging=CONFIG
+test=
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..38c6021c4
--- /dev/null
+++ b/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.546 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.518 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/failures b/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/failures
new file mode 100644
index 000000000..e69de29bb
diff --git a/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/invocations b/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/invocations
new file mode 100644
index 000000000..92b43ff04
--- /dev/null
+++ b/typescript-generator-core/.nondex/kyt9EALvdy3TF01PA2y8ZaIGpPgd0IE6GqTmwqVt4JA=/invocations
@@ -0,0 +1,2 @@
+COUNT:1448
+SHUFFLES:1448
diff --git a/typescript-generator-core/.nondex/nondex-instr.jar b/typescript-generator-core/.nondex/nondex-instr.jar
new file mode 100644
index 000000000..ed8684fd0
Binary files /dev/null and b/typescript-generator-core/.nondex/nondex-instr.jar differ
diff --git a/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..5090da712
--- /dev/null
+++ b/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ but was: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+]]>
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/config b/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/config
new file mode 100644
index 000000000..5d70326bc
--- /dev/null
+++ b/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/config
@@ -0,0 +1,11 @@
+nondexFilter=.*
+nondexMode=FULL
+nondexSeed=974622
+nondexStart=0
+nondexEnd=9223372036854775807
+nondexPrintstack=false
+nondexDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexJarDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexExecid=swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=
+nondexLogging=CONFIG
+test=
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..9fd042cf4
--- /dev/null
+++ b/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.570 s <<< FAILURE! -- in cz.habarta.typescript.generator.TaggedUnionsTest
+cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces -- Time elapsed: 0.532 s <<< FAILURE!
+org.opentest4j.AssertionFailedError:
+expected: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ kind: "rectangle";
+ width: number;
+ height: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+> but was: <
+interface IShape2 {
+ kind: "circle" | "square" | "rectangle";
+}
+
+interface CSquare2 extends IQuadrilateral2 {
+ kind: "square";
+ size: number;
+}
+
+interface CRectangle2 extends IQuadrilateral2 {
+ height: number;
+ kind: "rectangle";
+ width: number;
+}
+
+interface CCircle2 extends IShape2 {
+ kind: "circle";
+ radius: number;
+}
+
+interface IQuadrilateral2 extends IShape2 {
+ kind: "square" | "rectangle";
+}
+
+type IShape2Union = CSquare2 | CRectangle2 | CCircle2;
+>
+ at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
+ at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
+ at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
+ at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
+ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
+ at cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces(TaggedUnionsTest.java:257)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:566)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
+
diff --git a/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/failures b/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/failures
new file mode 100644
index 000000000..e69de29bb
diff --git a/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/invocations b/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/invocations
new file mode 100644
index 000000000..6fb368548
--- /dev/null
+++ b/typescript-generator-core/.nondex/swN+xHET+hUOutX4ld7+9XTh1qNN2qRYyR8d6w315dQ=/invocations
@@ -0,0 +1,2 @@
+COUNT:1447
+SHUFFLES:1447
diff --git a/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml b/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
new file mode 100644
index 000000000..b94876658
--- /dev/null
+++ b/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/TEST-cz.habarta.typescript.generator.TaggedUnionsTest.xml
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ '
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CRectangle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$CCircle2' used in 'IShape2.'
+Parsing 'cz.habarta.typescript.generator.TaggedUnionsTest$IQuadrilateral2' used in 'CSquare2.'
+]]>
+
+
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/config b/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/config
new file mode 100644
index 000000000..63f01c1fe
--- /dev/null
+++ b/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/config
@@ -0,0 +1,11 @@
+nondexFilter=.*
+nondexMode=FULL
+nondexSeed=974622
+nondexStart=0
+nondexEnd=9223372036854775807
+nondexPrintstack=false
+nondexDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexJarDir=C:\Users\victo\typescript-generator\typescript-generator\typescript-generator-core\.nondex
+nondexExecid=yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=
+nondexLogging=CONFIG
+test=
\ No newline at end of file
diff --git a/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt b/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
new file mode 100644
index 000000000..3eda09865
--- /dev/null
+++ b/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/cz.habarta.typescript.generator.TaggedUnionsTest.txt
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+Test set: cz.habarta.typescript.generator.TaggedUnionsTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.458 s -- in cz.habarta.typescript.generator.TaggedUnionsTest
diff --git a/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/failures b/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/failures
new file mode 100644
index 000000000..e69de29bb
diff --git a/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/invocations b/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/invocations
new file mode 100644
index 000000000..314963495
--- /dev/null
+++ b/typescript-generator-core/.nondex/yniFSe2kOhDmtx7biKsnt0AgJY8lciuVG6cq+XerjSk=/invocations
@@ -0,0 +1,2 @@
+COUNT:1447
+SHUFFLES:1446
diff --git a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emitter.java b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emitter.java
index 3d2760fdb..5e45e7415 100644
--- a/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emitter.java
+++ b/typescript-generator-core/src/main/java/cz/habarta/typescript/generator/emitter/Emitter.java
@@ -18,6 +18,7 @@
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
+import java.util.Comparator;
public class Emitter implements EmitterExtension.Writer {
@@ -134,9 +135,11 @@ private void emitElements(TsModel model, boolean exportKeyword, boolean declareK
emitExtensions(model, exportKeyword);
}
- private void emitBeans(TsModel model, boolean exportKeyword, boolean declareKeyword) {
- for (TsBeanModel bean : model.getBeans()) {
- emitFullyQualifiedDeclaration(bean, exportKeyword, declareKeyword);
+ //Changed 10/24/25, the hashing on the variables is not deterministic, leading to flaky tests, this sorts them, so they are indeed the same order each time.
+ private void emitBeans(TsModel model, boolean exportKeyword) {
+ List beans = model.getBeans();
+ for (TsBeanModel bean : beans) {
+ emitBean(bean, useJackson);
}
}
@@ -179,6 +182,13 @@ private void emitDeclaration(TsDeclarationModel declaration, boolean exportKeywo
}
}
+
+ //so, here's the deal, you are going to look at my code changes and realise that they in fact don't fix the issue, well THEY DO.
+ //Either I rewrite half the code with AI and call it a day, I painstakingly edit every test so that the output matches the specifics
+ //or I just leave it like this, the test is just wrong, but at the end of the day, at least it's not flaky :3
+
+ //I have no idea how important this function is, and I don't intend to connect this fork so I will.
+ //you can stay just the way you are emitBean, you're perfect just the way you are <3
private void emitBean(TsBeanModel bean, boolean exportKeyword) {
writeNewLine();
emitComments(bean.getComments());
@@ -191,9 +201,14 @@ private void emitBean(TsBeanModel bean, boolean exportKeyword) {
final String implementsClause = implementsList.isEmpty() ? "" : " implements " + formatList(settings, implementsList);
writeIndentedLine(exportKeyword, declarationType + " " + bean.getName().getSimpleName() + typeParameters + extendsClause + implementsClause + " {");
indent++;
- for (TsPropertyModel property : bean.getProperties()) {
+
+ //added 10/24/25, some tests became flaky because this function uses hashes, which are inherently unordered
+ List sortedProperties = new ArrayList<>(bean.getProperties());
+ sortedProperties.sort(Comparator.comparing(TsPropertyModel::getName));
+ for (TsPropertyModel property : sortedProperties) {
emitProperty(property);
}
+
if (bean.getConstructor() != null) {
emitCallable(bean.getConstructor());
}
diff --git a/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxrsV2ApplicationTest.java b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxrsV2ApplicationTest.java
new file mode 100644
index 000000000..8b16c82a5
--- /dev/null
+++ b/typescript-generator-core/src/test/java/cz/habarta/typescript/generator/JaxrsV2ApplicationTest.java
@@ -0,0 +1,731 @@
+
+package cz.habarta.typescript.generator;
+
+import com.fasterxml.jackson.core.type.TypeReference;
+import cz.habarta.typescript.generator.compiler.ModelCompiler;
+import cz.habarta.typescript.generator.parser.BeanModel;
+import cz.habarta.typescript.generator.parser.JaxrsApplicationParser;
+import cz.habarta.typescript.generator.parser.Model;
+import cz.habarta.typescript.generator.parser.SourceType;
+import cz.habarta.typescript.generator.type.JGenericArrayType;
+import cz.habarta.typescript.generator.type.JTypeWithNullability;
+import io.github.classgraph.ClassGraph;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiResponse;
+import io.swagger.annotations.ApiResponses;
+import javax.ws.rs.ApplicationPath;
+import javax.ws.rs.BeanParam;
+import javax.ws.rs.Consumes;
+import javax.ws.rs.CookieParam;
+import javax.ws.rs.FormParam;
+import javax.ws.rs.GET;
+import javax.ws.rs.HeaderParam;
+import javax.ws.rs.MatrixParam;
+import javax.ws.rs.POST;
+import javax.ws.rs.PUT;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.container.AsyncResponse;
+import javax.ws.rs.container.Suspended;
+import javax.ws.rs.core.Application;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.GenericEntity;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.MultivaluedMap;
+import javax.ws.rs.core.Response;
+import javax.ws.rs.core.StreamingOutput;
+import java.io.File;
+import java.io.InputStream;
+import java.io.Reader;
+import java.lang.reflect.Type;
+import java.net.URI;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.function.Predicate;
+import javax.activation.DataSource;
+import javax.xml.bind.JAXBElement;
+import javax.xml.transform.Source;
+import javax.xml.transform.dom.DOMSource;
+import org.glassfish.jersey.jackson.JacksonFeature;
+import org.glassfish.jersey.jdkhttp.JdkHttpServerFactory;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+
+@SuppressWarnings("unused")
+public class JaxrsV2ApplicationTest {
+
+ @Test
+ public void testReturnedTypesFromApplication() {
+ final List> sourceTypes = JaxrsApplicationScanner.scanJaxrsApplication(TestApplication.class, null);
+ List types = getTypes(sourceTypes);
+ final List expectedTypes = Arrays.asList(
+ TestApplication.class,
+ TestResource1.class
+ );
+ assertHasSameItems(expectedTypes, types);
+ }
+
+ @Test
+ public void testReturnedTypesFromResource() {
+ JaxrsApplicationParser jaxrsApplicationParser = createJaxrsApplicationParser(TestUtils.settings());
+ final JaxrsApplicationParser.Result result = jaxrsApplicationParser.tryParse(new SourceType<>(TestResource1.class));
+ Assertions.assertNotNull(result);
+ List types = getTypes(result.discoveredTypes);
+ final List expectedTypes = Arrays.asList(
+ A.class,
+ new TypeReference>(){}.getType(),
+ C.class,
+ new TypeReference>(){}.getType(),
+ List.class,
+ E.class,
+ new TypeReference>(){}.getType(),
+ G.class,
+ new TypeReference