]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/IfBranchesWithDifferentTypes.scl
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / IfBranchesWithDifferentTypes.scl
1 import "StandardLibrary"
2
3 find a = a
4 foo x = True
5
6 main = iter (\x -> do
7     if x == "A"
8     then foo $ find 23
9     else ()
10     ()
11   ) ["x"]
12  where
13   set = MSet.create () 
14 --
15 ()