X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FCHR4.scl;h=dc0714973abbbd9da901fe4d91df7e94442bcd0e;hb=refs%2Fchanges%2F77%2F277%2F2;hp=a2abc6eb50e8dc704f10d5223b62a74557e6f531;hpb=bf540e621923947f9d6f4d5eeef5d05f08373125;p=simantics%2Fplatform.git diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR4.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR4.scl index a2abc6eb5..dc0714973 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR4.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR4.scl @@ -4,3 +4,17 @@ main = () then True -- 3:10-3:18: Cannot solve the query. +-- +import "Prelude" + +main = getRef r + where + r = ref 1 + + when True + then Foo () + + when Foo _ + then r := 2 +-- +2