]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Void2.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / Void2.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Void2.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Void2.scl
new file mode 100644 (file)
index 0000000..f953aaf
--- /dev/null
@@ -0,0 +1,13 @@
+import "JavaBuiltin" as Java\r
+\r
+class Foo a where\r
+    foo :: a -> () -> a\r
+    \r
+instance Foo Integer where\r
+    foo x () = x\r
+    \r
+idWithFoo x = foo x ()    \r
+    \r
+main = idWithFoo (13 :: Integer)\r
+--\r
+13
\ No newline at end of file