]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/FoldMissingInitialValue.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / FoldMissingInitialValue.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/FoldMissingInitialValue.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/FoldMissingInitialValue.scl
new file mode 100644 (file)
index 0000000..affa2e6
--- /dev/null
@@ -0,0 +1,6 @@
+import "Prelude"\r
+\r
+f p l = (foldl (+) (map ((+)p) l)) + p\r
+--\r
+3:1-3:39: Couldn't simplify all effect subsumptions away. The current compiler cannot handle this situation. Try adding more type annotations.\r
+3:25-3:31: Type [a b] -> <c> a b is not a subtype of a.
\ No newline at end of file