]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InstanceTypeVariables.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / InstanceTypeVariables.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InstanceTypeVariables.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/InstanceTypeVariables.scl
new file mode 100644 (file)
index 0000000..e4ee646
--- /dev/null
@@ -0,0 +1,10 @@
+class Foo a b where\r
+    foo :: a -> b\r
+\r
+instance Foo a a where\r
+    foo x = x :: a\r
+\r
+main = "OK"\r
+--\r
+OK\r
+\r