]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Macros4.scl
Ensure GetElementClassRequest is not constructed without elementFactory
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / Macros4.scl
1 @macro\r
2 @inline\r
3 ($) :: (a -> <e> b) -> a -> <e> b\r
4 f $ x = f x\r
5 \r
6 justExecute :: (() -> a) -> a\r
7 justExecute f = f ()\r
8 \r
9 main :: Integer\r
10 main = justExecute $ \() -> (13 :: Integer)\r
11 --\r
12 13