]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/PolymorphicRecursion2.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / PolymorphicRecursion2.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/PolymorphicRecursion2.scl b/bundles/org.simantics.scl.compiler/tests/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