Skip to content

Unified: Nested type aliases are static members - #22877

Merged
hvitved merged 2 commits into
github:mainfrom
hvitved:unified/name-binding-alias
Oct 23, 2026
Merged

hvitved merged 2 commits into
github:mainfrom
hvitved:unified/name-binding-alias

Conversation

@hvitved

@hvitved hvitved commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@hvitved hvitved added the no-change-note-required This PR does not need a change note label Oct 23, 2026
@hvitved
hvitved marked this pull request as ready for review October 23, 2026 07:50
@hvitved
hvitved requested a review from a team as a code owner October 23, 2026 07:50
@hvitved
hvitved requested review from asgerf and a max review from Copilot October 23, 2026 07:50
@hvitved
hvitved merged commit 9b72529 into github:main Oct 23, 2026
17 checks passed
@hvitved
hvitved deleted the unified/name-binding-alias branch October 23, 2026 07:59

Copilot AI 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.

🟢 Approval recommended

The narrow classification change fits the existing alias-resolution logic and includes targeted regression coverage, with no blocking issues identified.

No open issues 🎉

What changed in this PR

Updates Unified name binding so nested Swift type aliases resolve as static members of their enclosing types.

Changes:

  • Classifies nested type aliases as static members.
  • Adds regression coverage for A.BAlias.C and reformats the existing Swift fixture.
File Description
unified/​ql/​test/​library-tests/​static-name-binding/​test.swift Tests nested alias access and subsequent member resolution.
unified/​ql/​lib/​codeql/​unified/​internal/​NameBindingPlugin.qll Adds type aliases to static-member classification.

Review effort: Max

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Unified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants