X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FMacros2.scl;h=14cfa409996c8ce50a0260101b02e4584f52a9c6;hb=b123fe92f27f72b9132ec52c9494fb8d8715d2ed;hp=582dc71d110e67fccf5ae62151945be2a586495c;hpb=4bf8562ab7cbb3747f9c5844a07469291d43e905;p=simantics%2Fplatform.git diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Macros2.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Macros2.scl index 582dc71d1..14cfa4099 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Macros2.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Macros2.scl @@ -1,11 +1,11 @@ -import "JavaBuiltin" as Java - -@macro -(&<&) :: Integer -> Integer -> Integer -a &<& b = if cmp == 0 then b else cmp - where - cmp = a - -main = 3 &<& 7 --- +import "JavaBuiltin" as Java + +@macro +(&<&) :: Integer -> Integer -> Integer +a &<& b = if cmp == 0 then b else cmp + where + cmp = a + +main = 3 &<& 7 +-- 3 \ No newline at end of file