]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/FunctionFunctor.scl
Supply SVG text editor with element measurement context
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / FunctionFunctor.scl
1 import "Prelude"
2
3 //               vvvvvv  mistake, parantheses missing
4 instance Functor (->) a where
5     map f g x = f (g x)
6     
7 main = "Not to be executed."
8 --
9 4:1-5:24: Wrong number of parameters to type class Functor.