]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Forall3.scl
Merge commit 'e87f096'
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Forall3.scl
1 \r
2 data List a = Nil | Cons a (List a)\r
3 \r
4 build :: (forall l. l -> (a -> l -> l) -> l) -> List a\r
5 build f = f Nil Cons\r
6 \r
7 main = build (\nil cons -> cons (1 :: Integer) (Cons (2 :: Integer) nil))\r
8                                              // ^^^^\r
9 -- \r
10 7:48-7:73: Expected <a> got <List Integer>.\r
11 7:69-7:72: Expected <List Integer> got <a>.