]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/FunctionFunctor.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / FunctionFunctor.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/FunctionFunctor.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/FunctionFunctor.scl
new file mode 100644 (file)
index 0000000..f634810
--- /dev/null
@@ -0,0 +1,9 @@
+import "Prelude"\r
+\r
+//               vvvvvv  mistake, parantheses missing\r
+instance Functor (->) a where\r
+    map f g x = f (g x)\r
+    \r
+main = "Not to be executed."\r
+--\r
+4:1-5:24: Wrong number of parameters to type class Functor.
\ No newline at end of file