]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InvalidKinds2.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / InvalidKinds2.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InvalidKinds2.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InvalidKinds2.scl
new file mode 100644 (file)
index 0000000..ffdf0a9
--- /dev/null
@@ -0,0 +1,9 @@
+class Functor f where\r
+    map :: (a -> b) -> f a -> f b\r
+    \r
+instance Functor Integer where\r
+    map = fail "Not implemented."\r
+\r
+main = "Not to be executed."\r
+--\r
+4:18-4:25: Expected a type with kind * -> * but got *.
\ No newline at end of file