]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/WrongInstanceMethod.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / WrongInstanceMethod.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/WrongInstanceMethod.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/WrongInstanceMethod.scl
new file mode 100644 (file)
index 0000000..2cdc4e8
--- /dev/null
@@ -0,0 +1,11 @@
+\r
+class Foo a where\r
+    foo :: a\r
+    \r
+instance Foo Integer where\r
+    foo = foo\r
+    bar = foo\r
+    \r
+main = "Not to be executed."\r
+--\r
+7:5-7:14: Method bar is not defined in the type class Foo.
\ No newline at end of file