]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/UnresolvedTypeInInstance.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / UnresolvedTypeInInstance.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/UnresolvedTypeInInstance.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/UnresolvedTypeInInstance.scl
new file mode 100644 (file)
index 0000000..1b5400c
--- /dev/null
@@ -0,0 +1,9 @@
+class Functor f where\r
+    map :: (a -> b) -> f a -> f b\r
+\r
+data Iddd a = Idd a\r
+\r
+instance Functor Idd where\r
+    map (Idd x) = x\r
+--\r
+6:18-6:21: Didn't find type constructor Idd.
\ No newline at end of file