]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Forall2.scl
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Forall2.scl
index 97d1c35105898955d8dfc284531b65f885666ed6..12f3a7922d2611a365a65a53ff0bf318344f2017 100644 (file)
@@ -1,9 +1,9 @@
-\r
-data List a = Nil | Cons a (List a)\r
-\r
-build :: (forall l. l -> (a -> l -> l) -> l) -> List a\r
-build f = f Nil Cons\r
-\r
-main = build (\nil cons -> cons (1 :: Integer) (cons (2 :: Integer) nil))\r
--- \r
+
+data List a = Nil | Cons a (List a)
+
+build :: (forall l. l -> (a -> l -> l) -> l) -> List a
+build f = f Nil Cons
+
+main = build (\nil cons -> cons (1 :: Integer) (cons (2 :: Integer) nil))
+-- 
 (Cons 1 (Cons 2 Nil))
\ No newline at end of file