]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/SSATypingBug.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / SSATypingBug.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/SSATypingBug.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/SSATypingBug.scl
new file mode 100644 (file)
index 0000000..15ff012
--- /dev/null
@@ -0,0 +1,11 @@
+import "Prelude"\r
+\r
+test :: () -> [Integer]\r
+test _ = do\r
+  header = [0]\r
+  rows = map (\foo -> map (\bar -> bar) [foo]) [1..5]\r
+  foldl (+) header rows\r
+  \r
+main = test ()\r
+--\r
+[0, 1, 2, 3, 4, 5]
\ No newline at end of file