]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InvalidTypeClassInstance1.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / InvalidTypeClassInstance1.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InvalidTypeClassInstance1.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InvalidTypeClassInstance1.scl
new file mode 100644 (file)
index 0000000..8860c3b
--- /dev/null
@@ -0,0 +1,9 @@
+\r
+class Foo a where\r
+    foo :: a -> Integer\r
+    \r
+instance Foo Long where\r
+    foo x = x\r
+        \r
+--\r
+6:13-6:14: Expected <Integer> got <Long>.
\ No newline at end of file