]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/NoInstance2.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / NoInstance2.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/NoInstance2.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/NoInstance2.scl
new file mode 100644 (file)
index 0000000..9490a82
--- /dev/null
@@ -0,0 +1,10 @@
+\r
+class Foo a where\r
+    foo :: a\r
+\r
+y :: Double\r
+y = y\r
+    \r
+x = if True then foo else y\r
+--\r
+8:18-8:21: There is no instance for <Foo Double>.
\ No newline at end of file