]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/OneLineMatch.scl
Merge commit '2a46c55'
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / OneLineMatch.scl
1 // Tests that match cases can be given in the same line as the scrutinee\r
2 data FooBar a = Foo a | Bar a\r
3 extract x = match x with Foo v -> v ; Bar v -> v\r
4 main = extract (Foo (3 :: Integer))\r
5 --\r
6 3