X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FLambdaMatch.scl;fp=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FLambdaMatch.scl;h=7aacf0b62e50faf80b6812689838e5fe57318ade;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=7e9103a6a846f45e35249d5139c7a074c5aef5f0;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git 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