]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/PolymorphicRecursion2.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / PolymorphicRecursion2.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/PolymorphicRecursion2.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/PolymorphicRecursion2.scl
new file mode 100644 (file)
index 0000000..44738e0
--- /dev/null
@@ -0,0 +1,12 @@
+\r
+\r
+class Foo a where\r
+    foo :: a\r
+    \r
+data List a = Nil | Cons a (List a)\r
+\r
+r x = Cons foo (r x)\r
+\r
+main = (1.0 :: Double)\r
+--\r
+1.0
\ No newline at end of file