]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/FoldMissingInitialValue.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / FoldMissingInitialValue.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/FoldMissingInitialValue.scl b/tests/org.simantics.scl.compiler.tests/src/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