Skip to content

Conversation

@jmschonfeld
Copy link
Contributor

This change disfavors String(platformString:) so that it is not ambiguous with String(cString:) when the initializer is specified without noting the label (i.e. in usages such as someUnsafePointer.map(String.init)

Resolves rdar://127408859

@jmschonfeld jmschonfeld requested a review from glessard May 2, 2024 20:08
@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld jmschonfeld force-pushed the string-init-ambiguity branch from 7afe0bd to dd45c80 Compare May 2, 2024 20:25
@glessard
Copy link
Contributor

glessard commented May 2, 2024

@swift-ci please test

Copy link
Contributor

@glessard glessard left a comment

Choose a reason for hiding this comment

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

It's unfortunate that we need this, but it does resolve the problem.

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