]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR7.scl
(refs #7250) Error messages for undefined existentials
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / CHR7.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR7.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR7.scl
new file mode 100644 (file)
index 0000000..6576cf4
--- /dev/null
@@ -0,0 +1,20 @@
+module {
+    export = [main],
+    chr
+}
+
+import "StandardLibrary"
+
+ruleset RS where
+    constraint X Integer
+    True => X 3
+    
+main = ()
+  where
+    include RS createRS
+    -X ?value, ?value < 6 => print "X \(?value)", X (?value+1)
+--
+X 3
+X 4
+X 5
+()
\ No newline at end of file