]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/OneLineMatch.scl
Ensure GetElementClassRequest is not constructed without elementFactory
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / 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