]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/ConjunctionMacro.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / ConjunctionMacro.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/ConjunctionMacro.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/ConjunctionMacro.scl
new file mode 100644 (file)
index 0000000..99188f8
--- /dev/null
@@ -0,0 +1,6 @@
+(&&) :: Boolean -> (<e> Boolean) -> <e> Boolean\r
+a && b = if a then b else False\r
+\r
+main = False && fail "Should not be evaluated!"\r
+--\r
+false
\ No newline at end of file