]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/IfWithoutElse.scl
Merged changes from feature/scl to master.
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / IfWithoutElse.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/IfWithoutElse.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/IfWithoutElse.scl
new file mode 100644 (file)
index 0000000..6659033
--- /dev/null
@@ -0,0 +1,11 @@
+import "Prelude"\r
+\r
+main = do\r
+    x = ref 3\r
+    if 2 > 1\r
+    then x := 4\r
+    if 1 > 2\r
+    then x := 8\r
+    getRef x\r
+--\r
+4
\ No newline at end of file