X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FMatching6.scl;fp=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FMatching6.scl;h=f4f7cc430ee4d81cf90164cdc5a0a2e498dace1e;hb=7089fc7c177174aa6d4c08cc11ff6f08038aeef1;hp=0000000000000000000000000000000000000000;hpb=7cc6ec281e1c226d2ec47b5bc52b83be3972cc1c;p=simantics%2Fplatform.git diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Matching6.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Matching6.scl new file mode 100644 index 000000000..f4f7cc430 --- /dev/null +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Matching6.scl @@ -0,0 +1,9 @@ +import "Prelude" + +main = do + match 1+1 :: Integer with + 2 -> 2 + 0 -> 0 + 1 -> 1 +-- +2 \ No newline at end of file