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