-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[CSSimplify] Skip transitive conformance check if argument is CGFloat
or Double
#82541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci please test |
There is an implicit conversion between `CGFloat` and `Double` types so if `CGFloat` argument doesn't satisfy the requirement it's possible that the generic parameter it's passed to be inferred as a `Double` from context and the requirement to be satisfied through this implicit conversion. Resolves: rdar://153461854
@swift-ci please test |
@swift-ci please test macOS platform |
This is the same problem as `CGFloat` because the conversion is bi-directional.
CGFloat
CGFloat
or Double
@swift-ci please test source compatibility |
@swift-ci please test |
@swift-ci please test Windows platform |
@swift-ci please test macOS platform |
@swift-ci please clean test macOS platform |
@swift-ci please test macOS platform |
1 similar comment
@swift-ci please test macOS platform |
@swift-ci please test Windows platform |
Debug source compat is failing for an unrelated reason:
|
@swift-ci please test Windows platform |
@swift-ci please test source compatibility debug |
@swift-ci please test Windows platform |
@swift-ci please test source compatibility debug |
This has performance implications even if we reduce it only to CGFloat, I'll fix it in a different way for now. |
Gracefully handle `LocatableType` types if they show up during serialization. This is a temporary fix until we can remove `TransitivelyConformsTo` constraint from the solver which is the underlying cause of the issue (see swiftlang#82541). Resolves: rdar://153461854
Gracefully handle `LocatableType` types if they show up during serialization. This is a temporary fix until we can remove `TransitivelyConformsTo` constraint from the solver which is the underlying cause of the issue (see swiftlang#82541). Resolves: rdar://153461854 (cherry picked from commit 907606e)
Gracefully handle `LocatableType` types if they show up during serialization. This is a temporary fix until we can remove `TransitivelyConformsTo` constraint from the solver which is the underlying cause of the issue (see swiftlang#82541). Resolves: rdar://153461854
There is an implicit conversion between
CGFloat
andDouble
typesso if
CGFloat
/Double
argument doesn't satisfy the requirement it'spossible that the generic parameter it's passed to be inferred as a the
other type from context and the requirement to be satisfied through this
implicit conversion.
Resolves: rdar://153461854