mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CS] Visit all fixed bindings for constraint re-activation (#30886)
[CS] Visit all fixed bindings for constraint re-activation
This commit is contained in:
@@ -6199,3 +6199,11 @@ bool MissingQuialifierInMemberRefFailure::diagnoseAsError() {
|
||||
emitDiagnostic(choice, diag::decl_declared_here, choice->getFullName());
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CoercionAsForceCastFailure::diagnoseAsError() {
|
||||
auto *coercion = cast<CoerceExpr>(getRawAnchor());
|
||||
emitDiagnostic(coercion->getLoc(), diag::coercion_may_fail_warning,
|
||||
getFromType(), getToType())
|
||||
.highlight(coercion->getSourceRange());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user