]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/NonexistentTypeClassInAnnotation.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / NonexistentTypeClassInAnnotation.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/NonexistentTypeClassInAnnotation.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/NonexistentTypeClassInAnnotation.scl
new file mode 100644 (file)
index 0000000..4030639
--- /dev/null
@@ -0,0 +1,9 @@
+import "Prelude"\r
+\r
+deepId :: FooBar b => b -> a -> a\r
+deepId count x = deepId2 count x\r
+deepId2 count x = if count <= 0 then x else deepId (count-1) x\r
+\r
+main = deepId (5 :: Integer) "FOO"\r
+--\r
+3:11-3:17: Unresolved type class FooBar.
\ No newline at end of file