Skip to content

Let environment self shadow SelfDrop#2094

Merged
ianks merged 2 commits into
mainfrom
self-drop-env-lookup
Jun 12, 2026
Merged

Let environment self shadow SelfDrop#2094
ianks merged 2 commits into
mainfrom
self-drop-env-lookup

Conversation

@ianks

@ianks ianks commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Previously, bare self returned SelfDrop as soon as local scopes missed, which meant an environment or counter variable named self couldn't shadow it. This PR fixes that by checking environments before falling back to SelfDrop, while still suppressing strict-variable errors for the fallback path.

@karreiro karreiro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @ianks!

@ianks ianks merged commit 9efca9f into main Jun 12, 2026
14 checks passed
@ianks ianks deleted the self-drop-env-lookup branch June 12, 2026 03:20
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.

2 participants