X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FCHR6.scl;fp=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FCHR6.scl;h=c18a13a5ad8d44535b80b687a6cfa66f84fcebba;hp=0000000000000000000000000000000000000000;hb=78f577368ba4c71ad6fb3d9f16c03c634585cf7b;hpb=a88529426319d66aa668882d767efb3f58a1a629 diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR6.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR6.scl new file mode 100644 index 000000000..c18a13a5a --- /dev/null +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR6.scl @@ -0,0 +1,23 @@ +module { + export = [main], + chr +} + +import "StandardLibrary" + +ruleset RS where + constraint X Integer + -X ?value, X ?value => True + X ?value => print "A \(?value)" + +main :: () +main = () + where + rs = createRS + include RS rs + X ?value => print "B \(?value)" + True => X 1 + True => X 2 + True => X 1 +-- +()