]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/ListSyntax5.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / ListSyntax5.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/ListSyntax5.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/ListSyntax5.scl
new file mode 100644 (file)
index 0000000..6ba8330
--- /dev/null
@@ -0,0 +1,8 @@
+import "Prelude"\r
+\r
+a = [1,2,3,4]\r
+\r
+main :: [Integer]\r
+main = [x+y | x <- a, y <- a, x!=y]\r
+--\r
+[3, 4, 5, 3, 5, 6, 4, 5, 7, 5, 6, 7]\r