Skip to content

while clause: suppress flattening of FLWOR expressions #2634

@ChristianGruen

Description

@ChristianGruen
for $max in (1 to 10)
return (
  for $a in 0 to $max
  while $a < 1
  return $a
)

…is flattened to…

for $max in (1 to 10)
for $a in 0 to $max
while $a < 1
return $a

…which is wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions