Skip to content

fix: track uses of instantiated generic fields - #5

Merged
dominicnunez merged 1 commit into
mainfrom
fix/generic-field-uses
Nov 2, 2026
Merged

dominicnunez merged 1 commit into
mainfrom
fix/generic-field-uses

Conversation

@dominicnunez

Copy link
Copy Markdown
Owner

Gallow reported used fields on instantiated generic types as unused because Go supplies distinct field objects for the instantiated types. Field uses now resolve to their original declaration object in both identifier and selector indexes, preserving object identity across packages and promoted fields.

Regressions cover generic value and function fields, keyed initializers, method bodies, promoted fields through an imported type alias, and genuinely unused fields with matching names. The prior revision fails the new regression.

Validation on Go 1.27.3: full race suite, vet, build, dependency checks, and Gallow self-analysis pass. The patched analyzer also reports zero findings against the Game Over worktree that exposed the defect. Independent patch review found no outstanding findings. CI also exercises the supported Go 1.26 line.

Refs dominicnunez/game-over#22.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T07:02:07.730126Z 6b6bf08 PR opened
🔒 Security Review ✅ Completed 2026-11-02T07:03:53.225632Z 6b6bf08 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dominicnunez
dominicnunez merged commit 55cd020 into main Nov 2, 2026
7 checks passed
@dominicnunez
dominicnunez deleted the fix/generic-field-uses branch November 2, 2026 07:07
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