Skip to content

Conformance constraints on specializations#737

Merged
ktoso merged 1 commit into
swiftlang:mainfrom
ktoso:conformance-constraints-on-specializations
May 12, 2026
Merged

Conformance constraints on specializations#737
ktoso merged 1 commit into
swiftlang:mainfrom
ktoso:conformance-constraints-on-specializations

Conversation

@ktoso
Copy link
Copy Markdown
Collaborator

@ktoso ktoso commented May 12, 2026

This way we can support extensions where T: Animal that add methods to
e.g. some container when we specialize it like FishTank = Tank<Fish>
because Fish: Animal.

This unlocks extension methods from methods with such where clauses.

This way we can support extensions where T: Animal that add methods to
e.g. some container when we specialize it like FishTank = Tank<Fish>
because Fish: Animal.

This unlocks extension methods from methods with such where clauses.
@ktoso ktoso force-pushed the conformance-constraints-on-specializations branch from 5f05363 to 218a179 Compare May 12, 2026 04:53
@ktoso ktoso merged commit af5328d into swiftlang:main May 12, 2026
64 checks passed
@ktoso ktoso deleted the conformance-constraints-on-specializations branch May 12, 2026 05:06
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