]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Void3.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Void3.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Void3.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Void3.scl
new file mode 100644 (file)
index 0000000..0530c8a
--- /dev/null
@@ -0,0 +1,12 @@
+import "JavaBuiltin" as Java\r
+\r
+data Foo = Foo ()\r
+\r
+\r
+ff = Foo ()\r
+\r
+gg () = 3 :: Integer\r
+\r
+main = gg (match ff with Foo a -> a)\r
+--\r
+3
\ No newline at end of file