]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/While.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 / While.scl
1
2 while :: (<e> Boolean) -> (<e> a) -> <e> ()
3 while cond body = loop ()
4   where loop _ = if cond
5                  then do body ; loop ()
6                  else ()
7
8 main = "FOO"
9 --
10 FOO