]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR14.scl
(refs #7866) Better error location for the NPE in compilation
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / CHR14.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR14.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR14.scl
new file mode 100644 (file)
index 0000000..f9f1779
--- /dev/null
@@ -0,0 +1,16 @@
+module { export = [main], features = [chr] }
+import "Prelude"
+
+ruleset A where
+    constraint AR Integer Integer
+    
+pcombine :: A -> <Proc> ()
+pcombine a = ()
+  where
+    include A a
+
+    -AR ?a ?b => True
+
+main = ()
+--
+()
\ No newline at end of file