]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/scl/LambdaMatch.scl
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / tests / scl / LambdaMatch.scl
1 import "Prelude"
2
3 f :: Maybe String -> String
4 f = \match
5      Just a -> a
6      Nothing -> ""
7
8 main = f Nothing + f (Just "foo")
9 --
10 foo