]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/FunctionFunctor.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / FunctionFunctor.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/FunctionFunctor.scl b/bundles/org.simantics.scl.compiler/tests/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