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%2FLambdaMatch.scl;h=7aacf0b62e50faf80b6812689838e5fe57318ade;hp=7e9103a6a846f45e35249d5139c7a074c5aef5f0;hb=HEAD;hpb=a8758de5bc19e5adb3f618d3038743a164f09912 diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/LambdaMatch.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/LambdaMatch.scl index 7e9103a6a..7aacf0b62 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/LambdaMatch.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/LambdaMatch.scl @@ -1,10 +1,10 @@ -import "Prelude" - -f :: Maybe String -> String -f = \match - Just a -> a - Nothing -> "" - -main = f Nothing + f (Just "foo") --- -foo +import "Prelude" + +f :: Maybe String -> String +f = \match + Just a -> a + Nothing -> "" + +main = f Nothing + f (Just "foo") +-- +foo