mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ConstraintSystem] Intoduce a fix for incorrect use of trailing closures
This commit is contained in:
@@ -994,3 +994,15 @@ RemoveInvalidCall *RemoveInvalidCall::create(ConstraintSystem &cs,
|
||||
ConstraintLocator *locator) {
|
||||
return new (cs.getAllocator()) RemoveInvalidCall(cs, locator);
|
||||
}
|
||||
|
||||
bool AllowInvalidUseOfTrailingClosure::diagnose(Expr *expr, bool asNote) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
AllowInvalidUseOfTrailingClosure *
|
||||
AllowInvalidUseOfTrailingClosure::create(ConstraintSystem &cs, Type argType,
|
||||
Type paramType,
|
||||
ConstraintLocator *locator) {
|
||||
return new (cs.getAllocator())
|
||||
AllowInvalidUseOfTrailingClosure(cs, argType, paramType, locator);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user