]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InvalidInstance1.scl
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / InvalidInstance1.scl
1 class Foo a where
2     (+) :: a -> a -> a
3
4 instance Foo Double where
5     infix 3 (+)
6     x + y = x
7 --
8 5:5-5:16: Invalid declaration under instance definition.