8000 analysis/code: support instantiated type selectors by dajiaohuang · Pull Request #1824 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content
1 8000

analysis/code: support instantiated type selectors - #1824

Open
dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/sa1019-generic-composite-field
Open

dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/sa1019-generic-composite-field

Conversation

@dajiaohuang
Copy link
Copy Markdown

Fixes #1821. SA1019 constructs a selector for deprecated fields in a composite literal; when the literal type is instantiated, SelectorName encountered an IndexExpr or IndexListExpr and panicked. The fallback now strips type arguments and resolves the underlying selector. Static call-path review and git diff --check passed. Tests were not run per coordinator instruction.

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.

SA1019: "unsupported selector" panic on generic struct literal with deprecated field

1 participant

0