]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/WrongInstanceMethod.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / WrongInstanceMethod.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/WrongInstanceMethod.scl b/bundles/org.simantics.scl.compiler/tests/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