Skip to content

Make SwiftNominalType.genericArguments non-optional#739

Merged
ktoso merged 2 commits into
swiftlang:mainfrom
sidepelican:nonnull_genericarguments
May 13, 2026
Merged

Make SwiftNominalType.genericArguments non-optional#739
ktoso merged 2 commits into
swiftlang:mainfrom
sidepelican:nonnull_genericarguments

Conversation

@sidepelican
Copy link
Copy Markdown
Contributor

This is a minor refactoring to change SwiftNominalType.genericArguments from an optional array to a non-optional one.

  • In practice, we don't need to distinguish between nil and an empty array [].
  • Improves consistency since JavaType already maintains non-optional type parameters.

@sidepelican sidepelican requested a review from ktoso as a code owner May 12, 2026 08:58
Copy link
Copy Markdown
Collaborator

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always happy to take such cleanups, sounds good!

@ktoso
Copy link
Copy Markdown
Collaborator

ktoso commented May 12, 2026

PS: I'm back from holiday so, as you may have noticed, more responsive again :-) Thanks for the continued PRs!

@ktoso ktoso merged commit bec3da1 into swiftlang:main May 13, 2026
64 checks passed
@sidepelican sidepelican deleted the nonnull_genericarguments branch May 13, 2026 04:25
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.

2 participants