"CHR constraint from an included ruleset is activated multiple times"
Change-Id: If24b6b3251ad563ccc8f9db9c97c71279f688325
*/
//@Test public void Bug6989() { test(); }
+
+ @Test public void CHR11() { test(); }
}
--- /dev/null
+module { export = [main], features = [chr] }
+import "Prelude"
+
+ruleset Foo where
+ constraint Foo Integer
+
+main = ()
+ where
+ foo = createFoo
+ include Foo foo
+
+ when Foo ?x
+ then print ?x
+
+ when True
+ then Foo 2
+
+ when Foo ?x
+ ?x < 5
+ then Foo (?x + 1)
+--
+2
+3
+4
+5
+()
\ No newline at end of file