It is unclear if this is a separate issue, or a duplicate of #8, but a comment found in the code notes that "an arbitrary" expression cannot appear as the left hand side of a selection.
If so, the fix for #8 might be as simple as moving Selection "earlier" in the expression rules, i.e. between InvTerm and the Call / TemplateCall expressions. If we fix #8, we can probably close this too. Whoever fixes #8 will be in a position to say.
We probably actually don't want to allow arbitrary expressions on the left-hand side, so long as things like (...).foo can remain a work-around for edge cases.
It is unclear if this is a separate issue, or a duplicate of #8, but a comment found in the code notes that "an arbitrary" expression cannot appear as the left hand side of a selection.
If so, the fix for #8 might be as simple as moving
Selection
"earlier" in the expression rules, i.e. betweenInvTerm
and theCall
/TemplateCall
expressions. If we fix #8, we can probably close this too. Whoever fixes #8 will be in a position to say.We probably actually don't want to allow arbitrary expressions on the left-hand side, so long as things like
(...).foo
can remain a work-around for edge cases.