X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FInvalidInstance1.scl;h=36b3b92fc66ac33be0662ae680f4198f558be8bc;hp=35064c6450e293148fd1d050ec8893e5bbc11850;hb=172abed5dbf73c1304a7a95bb8504ea293556948;hpb=f23dc81afe57e77d20706a9a94002ce4c72f670d diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InvalidInstance1.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InvalidInstance1.scl index 35064c645..36b3b92fc 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InvalidInstance1.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InvalidInstance1.scl @@ -1,8 +1,8 @@ -class Foo a where - (+) :: a -> a -> a - -instance Foo Double where - infix 3 (+) - x + y = x --- +class Foo a where + (+) :: a -> a -> a + +instance Foo Double where + infix 3 (+) + x + y = x +-- 5:5-5:16: Invalid declaration under instance definition. \ No newline at end of file