]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InvalidInstance1.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / InvalidInstance1.scl
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
new file mode 100644 (file)
index 0000000..35064c6
--- /dev/null
@@ -0,0 +1,8 @@
+class Foo a where\r
+    (+) :: a -> a -> a\r
+\r
+instance Foo Double where\r
+    infix 3 (+)\r
+    x + y = x\r
+--\r
+5:5-5:16: Invalid declaration under instance definition.    
\ No newline at end of file