-
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
base: main
Are you sure you want to change the base?
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 |
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