]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Macros4.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Macros4.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Macros4.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Macros4.scl
new file mode 100644 (file)
index 0000000..87e41e0
--- /dev/null
@@ -0,0 +1,12 @@
+@macro\r
+@inline\r
+($) :: (a -> <e> b) -> a -> <e> b\r
+f $ x = f x\r
+\r
+justExecute :: (() -> a) -> a\r
+justExecute f = f ()\r
+\r
+main :: Integer\r
+main = justExecute $ \() -> (13 :: Integer)\r
+--\r
+13
\ No newline at end of file