]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Arity1.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Arity1.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Arity1.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Arity1.scl
new file mode 100644 (file)
index 0000000..fa48e47
--- /dev/null
@@ -0,0 +1,9 @@
+\r
+data Foo a = Foo a\r
+\r
+f :: Foo a -> a\r
+f = \Foo a -> a \r
+\r
+main = "Not to be executed"\r
+--\r
+5:6-5:11: Arity is 1 but 2 patterns have been given.
\ No newline at end of file