Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

propagate efWantStmt in semWhen #23400

Merged
merged 1 commit into from
Mar 14, 2024
Merged

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Mar 13, 2024

fixes #23399

The new case introduced in #21657 is triggered by efWantStmt but the when statement doesn't normally propagate this flag, so propagate it when the semCheck param in semWhen is true which happens when the when statement is efWhenStmt anyway.

@Araq
Copy link
Member

Araq commented Mar 14, 2024

Irrelevant CI failures, merging.

@Araq Araq merged commit fb6c805 into nim-lang:devel Mar 14, 2024
17 of 19 checks passed
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from fb6c805

Hint: mm: orc; opt: speed; options: -d:release
178258 lines; 7.811s; 768.43MiB peakmem

narimiran pushed a commit that referenced this pull request Apr 22, 2024
fixes #23399

The new case introduced in #21657 is triggered by `efWantStmt` but the
`when` statement doesn't normally propagate this flag, so propagate it
when the `semCheck` param in `semWhen` is true which happens when the
`when` statement is `efWhenStmt` anyway.

(cherry picked from commit fb6c805)
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.

Another variation of "Error: internal error: expr(skModule); unknown symbol"
2 participants