Skip to content

[D] Fix auto attribute in if and while conditions#4568

Merged
deathaxe merged 3 commits into
sublimehq:masterfrom
deathaxe:pr/d/fix-auto
Jun 15, 2026
Merged

[D] Fix auto attribute in if and while conditions#4568
deathaxe merged 3 commits into
sublimehq:masterfrom
deathaxe:pr/d/fix-auto

Conversation

@deathaxe

@deathaxe deathaxe commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Fixes #4567

This PR removes a redundant auto pattern from basic-type context and adds a special condition-attribute context to consume it at the beginning of if and while conditions.

Note: Adding condition-attribute context is a conservative decision to avoid undesired side-effects. It may also be valid to prepend auto pattern to first-value.

deathaxe added 2 commits June 14, 2026 13:48
This commit adds `auto` keyword to `first-value`.
This commit removes redundant pattern as `auto` is part of `attributes`
variable and therefore already included via `attribute_lookahead` context.
@jrappen

jrappen commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

not a fan of the mix of pop: 1 and pop: true

@deathaxe deathaxe merged commit e923872 into sublimehq:master Jun 15, 2026
2 checks passed
@deathaxe deathaxe deleted the pr/d/fix-auto branch June 15, 2026 07:08
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.

[D] (new) while condition assignment

3 participants