In reply to dave_59:
constraint c2{
a.sum(item1) with (item1.sum(item2) with (item2==0 ? 1 : 0)) <= 10);
}
It is still compilation failure and what is the item2 for ?
In reply to dave_59:
constraint c2{
a.sum(item1) with (item1.sum(item2) with (item2==0 ? 1 : 0)) <= 10);
}
It is still compilation failure and what is the item2 for ?