]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Void1.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / Void1.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Void1.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Void1.scl
new file mode 100644 (file)
index 0000000..40a710f
--- /dev/null
@@ -0,0 +1,16 @@
+importJava "java.util.List" where\r
+    data List a\r
+    \r
+    @JavaName add\r
+    addList :: List a -> a -> <Proc> Boolean\r
+\r
+importJava "java.util.ArrayList" where\r
+    @JavaName "<init>"\r
+    newList :: () -> <Proc> (List a)\r
+\r
+main = do\r
+    l = newList ()\r
+    addList l (3 :: Integer)\r
+    l\r
+--\r
+[3]
\ No newline at end of file