-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Diagnostics] Hint contextual type diagnostics with expression type i… #16576
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 |
…lution types This allows callees of `getPossibleTypesOfExpressionWithoutApplying` to get only unique types from the re-run of the solver.
d2946c0
to
f672605
Compare
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test macOS platform |
Build failed |
@huonw I don't know what is going on here but my changes didn't actually change that diagnostic, they fail with updated one... |
f672605
to
aa89729
Compare
@swift-ci please clean test |
…f known Avoid a re-typecheck in `diagnoseContextualConversionError` if the expression type is already known and only return `true` if we know that at least one error diagnostic has been emitted otherwise there is a risk that type-check is going to return without any and fail in verifier. Resolves: rdar://problem/40002266
aa89729
to
934351a
Compare
@swift-ci please clean test |
I think it's inconsistent which diagnostic is emitted. |
@huonw No problem! |
…f known
Avoid a re-typecheck in
diagnoseContextualConversionError
if theexpression type is already known and only return
true
if we knowthat at least one error diagnostic has been emitted otherwise there
is a risk that type-check is going to return without any and fail
in verifier.
Resolves: rdar://problem/40002266