From bf8d4fe6472ba2d43351948d37fa73d850b4b088 Mon Sep 17 00:00:00 2001 From: "pl@gohorb.ba-horb.de" Date: Mon, 29 Mar 2021 10:00:04 +0200 Subject: [PATCH] new file: src/test/resources/insertGenericsJav/TestContraVariant.jav new file: src/test/resources/insertGenericsJav/TestMutualRecursionWithField2.jav new file: src/test/resources/insertGenericsJav/TestMutualRecursionWithField3.jav --- .../insertGenericsJav/TestContraVariant.jav | 12 ++++++++++ .../TestMutualRecursionWithField2.jav | 22 ++++++++++++++++++ .../TestMutualRecursionWithField3.jav | 23 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 src/test/resources/insertGenericsJav/TestContraVariant.jav create mode 100644 src/test/resources/insertGenericsJav/TestMutualRecursionWithField2.jav create mode 100644 src/test/resources/insertGenericsJav/TestMutualRecursionWithField3.jav diff --git a/src/test/resources/insertGenericsJav/TestContraVariant.jav b/src/test/resources/insertGenericsJav/TestContraVariant.jav new file mode 100644 index 000000000..9349e620d --- /dev/null +++ b/src/test/resources/insertGenericsJav/TestContraVariant.jav @@ -0,0 +1,12 @@ +public class TestContraVariant { + + m(x) { + var y; + x = y; + return y; + } + + main(x) { + return m(x); + } +} \ No newline at end of file diff --git a/src/test/resources/insertGenericsJav/TestMutualRecursionWithField2.jav b/src/test/resources/insertGenericsJav/TestMutualRecursionWithField2.jav new file mode 100644 index 000000000..727e60313 --- /dev/null +++ b/src/test/resources/insertGenericsJav/TestMutualRecursionWithField2.jav @@ -0,0 +1,22 @@ +public class TestMutualRecursionWithField2 { + a; + + id(b) { + var c = b; + return main(b,c); + } + + setA(x) { + a = x; + return a; + } + + m(x,y) { + x = id(y); + return x; + } + + main(x,y) { + return m(setA(x),id(y)); + } +} \ No newline at end of file diff --git a/src/test/resources/insertGenericsJav/TestMutualRecursionWithField3.jav b/src/test/resources/insertGenericsJav/TestMutualRecursionWithField3.jav new file mode 100644 index 000000000..24e098908 --- /dev/null +++ b/src/test/resources/insertGenericsJav/TestMutualRecursionWithField3.jav @@ -0,0 +1,23 @@ +public class TestMutualRecursionWithField3 { + a; + + id(b) { + var c = b; + return main(b,c); + } + + setA(x) { + a = x; + return a; + } + + m(x,y) { + x = id(y); + return x; + } + + main(x,y) { + var z = m(setA(x),id(y)); + return z; + } +} \ No newline at end of file