]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/MatchingWithoutTypeAnnotations.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 / MatchingWithoutTypeAnnotations.scl
1
2 data List a = Nil | Cons a (List a)
3
4 //first :: List Integer -> Integer
5 first Nil = 0 :: Integer
6 first (Cons x _) = x
7
8 main = first (Cons (9 :: Integer) (Cons (8 :: Integer) Nil))
9 --
10 9