8000 astutil: close type parameter scope per type spec by dajiaohuang · Pull Request #1817 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

astutil: close type parameter scope per type spec - #1817

Closed
dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/1817-free-typeparam-scope
Closed

dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/1817-free-typeparam-scope

Conversation

@dajiaohuang
Copy link
Copy Markdown

Close a generic TypeSpec's temporary type-parameter scope immediately after walking its type. In one GenDecl, type A[T any] struct{} followed by type B struct{T} must leave the T in B's field type free; the deferred close previously kept A's T visible and hid that free name. Validation: static scope-flow comparison and git diff --check only; no tests were added or run.

@dajiaohuang dajiaohuang closed this Oct 8, 2026
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

0