Fragments that assign to an array only assign the last parsed element when used with + or * cardinalities. This is a serious bug that prevents using fragment composition in more complex grammars for parsing declarations and bodies without resorting to copy-pasting .
Langium version: 1.0.1 Package name: langium
Fragments that assign to an array only assign the last parsed element when used with
+
or*
cardinalities. This is a serious bug that prevents using fragment composition in more complex grammars for parsing declarations and bodies without resorting to copy-pasting .Steps To Reproduce
with
Link to code example:
Link to playground
The current behavior
The expected behavior