]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/TypeClass.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / TypeClass.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/TypeClass.scl b/bundles/org.simantics.scl.compiler/tests/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