Skip to content

Break ExpressibleByArgument default ambiguity#841

Merged
natecook1000 merged 1 commit into
mainfrom
expressible-ambiguity
Dec 15, 2025
Merged

Break ExpressibleByArgument default ambiguity#841
natecook1000 merged 1 commit into
mainfrom
expressible-ambiguity

Conversation

@natecook1000

Copy link
Copy Markdown
Member

For types that conform to both RawRepresentable and LosslessStringConvertible, the provided default implementations of init(argument:) are ambiguous. This provides a doubly- constrained implementation that breaks that ambiguity.

Checklist

  • I've added at least one test that validates that my change is working, if appropriate
  • I've followed the code style of the rest of the project
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary

For types that conform to both RawRepresentable and
LosslessStringConvertible, the provided default implementations
of `init(argument:)` are ambiguous. This provides a doubly-
constrained implementation that breaks that ambiguity.
@natecook1000 natecook1000 requested a review from rauhul as a code owner December 15, 2025 14:38
@natecook1000 natecook1000 merged commit edbe114 into main Dec 15, 2025
29 checks passed
@natecook1000 natecook1000 deleted the expressible-ambiguity branch December 15, 2025 16:00
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