]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Unit test for overloading bug private/scl-overloading-bug
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Mon, 2 Jul 2018 09:21:25 +0000 (12:21 +0300)
committerHannu Niemistö <hannu.niemisto@semantum.fi>
Mon, 2 Jul 2018 09:23:11 +0000 (12:23 +0300)
Change-Id: I3e1f6c33a94d96176d3fb0e0b1e505fd7b1ddf3c

tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/ModuleRegressionTests.java
tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Overloading5.scl [new file with mode: 0644]

index 6a416687d1ba7d280a93f1a7c30976f1ba957b9f..d2a867982ddd566dc4dc027987f4b127ca7f261b 100644 (file)
@@ -208,6 +208,7 @@ public class ModuleRegressionTests extends TestBase {
     @Test public void OverloadedLiterals2() { test(); }
     @Test public void Overloading1() { test(); }
     @Test public void Overloading4() { test(); }
+    @Test public void Overloading5() { test(); }
     @Test public void Parsing() { test(); }
     @Test public void PolymorphicRecursion() { test(); }
     @Test public void PolymorphicRecursion2() { test(); }
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Overloading5.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Overloading5.scl
new file mode 100644 (file)
index 0000000..8a36c91
--- /dev/null
@@ -0,0 +1,5 @@
+import "Prelude"
+import "MSet"
+main = map id []
+--
+[]
\ No newline at end of file