Skip to content

Correctly handle labels inside of native function arguments#301

Merged
01mf02 merged 1 commit intomainfrom
label-inside-fun
Jul 2, 2025
Merged

Correctly handle labels inside of native function arguments#301
01mf02 merged 1 commit intomainfrom
label-inside-fun

Conversation

@01mf02
Copy link
Owner

@01mf02 01mf02 commented Jul 2, 2025

Before, when a new label was declared inside a native function argument, breaking to a label declared outside the call to the native function could be caught by the wrong label.
As example, consider the following filter:

[1, 2] | label $x | sort_by(label $y | break $x)

Before this change, this would (erroneously) yield [1, 2]. After this change, this (correctly) yields no output at all.

@01mf02 01mf02 merged commit 57511c1 into main Jul 2, 2025
3 checks passed
@01mf02 01mf02 deleted the label-inside-fun branch July 2, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant