Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

Set does not work correctly with non-primitive elements #2392

Open
denis-bogdanas opened this issue Jan 8, 2018 · 0 comments
Open

Set does not work correctly with non-primitive elements #2392

denis-bogdanas opened this issue Jan 8, 2018 · 0 comments

Comments

@denis-bogdanas
Copy link
Contributor

Have a set with this composition:

<forvar> SetItem ( %var ( i ) ) SetItem ( %var ( j ) ) </forvar>

The following rule won't match:

rule <k> #clearIter(ITER:Id) => .) ... </k>
     <forvar> (SetItem(%var(ITER)) => .Set) FORVARS </forvar>

If we change the set and rule accordingly to store plain Id elements, it will match. Problem happens when <forvar> contains 2+ elements.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant