]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Macros4.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 / Macros4.scl
1 @macro
2 @inline
3 ($) :: (a -> <e> b) -> a -> <e> b
4 f $ x = f x
5
6 justExecute :: (() -> a) -> a
7 justExecute f = f ()
8
9 main :: Integer
10 main = justExecute $ \() -> (13 :: Integer)
11 --
12 13