File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1854,7 +1854,7 @@ bool ContextualFailure::diagnoseAsError() {
1854
1854
return true ;
1855
1855
}
1856
1856
1857
- if (diagnoseConversionInCoercion ())
1857
+ if (diagnoseCoercionToUnrelatedType ())
1858
1858
return true ;
1859
1859
1860
1860
return false ;
@@ -2223,7 +2223,7 @@ bool ContextualFailure::diagnoseMissingFunctionCall() const {
2223
2223
return true ;
2224
2224
}
2225
2225
2226
- bool ContextualFailure::diagnoseConversionInCoercion () const {
2226
+ bool ContextualFailure::diagnoseCoercionToUnrelatedType () const {
2227
2227
auto *anchor = getAnchor ();
2228
2228
2229
2229
if (auto *coerceExpr = dyn_cast<CoerceExpr>(anchor)) {
Original file line number Diff line number Diff line change @@ -556,7 +556,7 @@ class ContextualFailure : public FailureDiagnostic {
556
556
bool diagnoseConversionToNil () const ;
557
557
558
558
// / Diagnose failed conversion in a `CoerceExpr`.
559
- bool diagnoseConversionInCoercion () const ;
559
+ bool diagnoseCoercionToUnrelatedType () const ;
560
560
561
561
// If we're trying to convert something of type "() -> T" to T,
562
562
// then we probably meant to call the value.
You can’t perform that action at this time.
0 commit comments