]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/MonadSyntax1.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / MonadSyntax1.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/MonadSyntax1.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/MonadSyntax1.scl
new file mode 100644 (file)
index 0000000..94774a4
--- /dev/null
@@ -0,0 +1,11 @@
+import "Prelude"\r
+\r
+a = [1, 2]\r
+b = [5, 6]\r
+\r
+main = mdo \r
+  x <- a\r
+  y <- b\r
+  return (x+y) \r
+--\r
+[6, 7, 7, 8]
\ No newline at end of file