]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/JavaMethods.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / JavaMethods.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/JavaMethods.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/JavaMethods.scl
new file mode 100644 (file)
index 0000000..d51bd4b
--- /dev/null
@@ -0,0 +1,9 @@
+import "JavaBuiltin" as Java\r
+\r
+importJava "java.lang.Integer" where\r
+    @JavaName "parseInt"\r
+    stringToInteger :: String -> Integer\r
+\r
+main = stringToInteger "13"\r
+--\r
+13
\ No newline at end of file