]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Matching2.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / Matching2.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Matching2.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Matching2.scl
new file mode 100644 (file)
index 0000000..c71b98b
--- /dev/null
@@ -0,0 +1,9 @@
+\r
+main = match (5 :: Integer) with\r
+  (1 :: Integer) -> "wrong"\r
+  (2 :: Integer) -> "wrong"\r
+  (5 :: Integer) -> "right"\r
+  (6 :: Integer) -> "wrong"\r
+  _ -> "wrong"\r
+--\r
+right
\ No newline at end of file