X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FOneLineMatch.scl;h=d8210a30582061033f39ec30bf9b7f68ab3ced70;hp=3f16b078323944d40432023e1cc3b4fab92a7f37;hb=HEAD;hpb=0144ba232323a0e4f7ec8fe0681a150faafd7caf diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/OneLineMatch.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/OneLineMatch.scl index 3f16b0783..d8210a305 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/OneLineMatch.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/OneLineMatch.scl @@ -1,6 +1,6 @@ -// Tests that match cases can be given in the same line as the scrutinee -data FooBar a = Foo a | Bar a -extract x = match x with Foo v -> v ; Bar v -> v -main = extract (Foo (3 :: Integer)) --- +// Tests that match cases can be given in the same line as the scrutinee +data FooBar a = Foo a | Bar a +extract x = match x with Foo v -> v ; Bar v -> v +main = extract (Foo (3 :: Integer)) +-- 3 \ No newline at end of file