mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Diagnostics] Use ContextualFailure and ContextualMistatch as base classes
for `AutoClosurePointerConversionFailure` and `AllowAutoClosurePointerConversion` respectively.
This commit is contained in:
@@ -271,7 +271,7 @@ AutoClosureForwarding *AutoClosureForwarding::create(ConstraintSystem &cs,
|
||||
|
||||
bool AllowAutoClosurePointerConversion::diagnose(Expr *root, bool asNote) const {
|
||||
auto failure = AutoClosurePointerConversionFailure(root, getConstraintSystem(),
|
||||
PointeeType, PointerType, getLocator());
|
||||
getFromType(), getToType(), getLocator());
|
||||
return failure.diagnose(asNote);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user