Skip to content

refactor: extend fn-as-lambda diagnostic to expressions#359

Merged
ivov merged 1 commit into
mainfrom
fn-as-lambda-in-expressions
May 8, 2026
Merged

refactor: extend fn-as-lambda diagnostic to expressions#359
ivov merged 1 commit into
mainfrom
fn-as-lambda-in-expressions

Conversation

@ivov
Copy link
Copy Markdown
Owner

@ivov ivov commented May 8, 2026

Writing a Go-style fn(...) -> ... as a lambda now emits the parse.fn_as_lambda hint at fn in any expression position. Previously this only fired inside call argument lists and delimited literals, so cases like a let right-hand side produced a cascade of misleading parse.expected_declaration errors.

@ivov ivov merged commit 208d034 into main May 8, 2026
12 checks passed
@ivov ivov mentioned this pull request May 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Released in lisette-v0.2.2

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