From: Hannu Niemistö Date: Mon, 2 Jul 2018 09:21:25 +0000 (+0300) Subject: Unit test for overloading bug X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=38fd1c4298d90a59e013fc3efbd2baa750985072;p=simantics%2Fplatform.git Unit test for overloading bug Change-Id: I3e1f6c33a94d96176d3fb0e0b1e505fd7b1ddf3c --- diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/ModuleRegressionTests.java b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/ModuleRegressionTests.java index 6a416687d..d2a867982 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/ModuleRegressionTests.java +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/ModuleRegressionTests.java @@ -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 index 000000000..8a36c91fe --- /dev/null +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Overloading5.scl @@ -0,0 +1,5 @@ +import "Prelude" +import "MSet" +main = map id [] +-- +[] \ No newline at end of file