]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/InvalidInstance1.scl
Ensure GetElementClassRequest is not constructed without elementFactory
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / InvalidInstance1.scl
1 class Foo a where\r
2     (+) :: a -> a -> a\r
3 \r
4 instance Foo Double where\r
5     infix 3 (+)\r
6     x + y = x\r
7 --\r
8 5:5-5:16: Invalid declaration under instance definition.