Skip to content

Auto promote when creating constants inside namespace#622

Open
vinistock wants to merge 1 commit into03-02-fix_corner_cases_of_re-opening_aliasesfrom
03-02-auto_promote_when_creating_constants_inside_namespace
Open

Auto promote when creating constants inside namespace#622
vinistock wants to merge 1 commit into03-02-fix_corner_cases_of_re-opening_aliasesfrom
03-02-auto_promote_when_creating_constants_inside_namespace

Conversation

@vinistock
Copy link
Member

@vinistock vinistock commented Mar 2, 2026

Another case we need promotion found in the wild. We need to be able to handle auto-promotion in this case:

Foo = dynamic
Foo::Bar = 123

Since Foo is already mark as promotable, we need to promote it to a namespace so that Foo::Bar can work as expected.

Note that we assume a module for now. This approach is not 100% correct, but we can't get much more precise without a type system first.

Copy link
Member Author

vinistock commented Mar 2, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this Mar 2, 2026
@vinistock vinistock added the bugfix A change that fixes an existing bug label Mar 2, 2026 — with Graphite App
@vinistock vinistock marked this pull request as ready for review March 2, 2026 19:08
@vinistock vinistock requested a review from a team as a code owner March 2, 2026 19:08
@vinistock vinistock force-pushed the 03-02-fix_corner_cases_of_re-opening_aliases branch from 0d5c6f8 to 4f2c3c2 Compare March 2, 2026 19:12
@vinistock vinistock force-pushed the 03-02-auto_promote_when_creating_constants_inside_namespace branch from 41ee85d to 5414794 Compare March 2, 2026 19:12
@vinistock vinistock force-pushed the 03-02-auto_promote_when_creating_constants_inside_namespace branch from 5414794 to cc10553 Compare March 2, 2026 19:59
@vinistock vinistock force-pushed the 03-02-fix_corner_cases_of_re-opening_aliases branch from 4f2c3c2 to 9cf59ac Compare March 2, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix A change that fixes an existing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant