[CSFix] Add a warning fix for situations when trailing closure is matched via backward scan

This commit is contained in:
Pavel Yaskevich
2020-08-06 16:55:37 -07:00
parent f78a87a0c1
commit adbbc00181
2 changed files with 44 additions and 0 deletions

View File

@@ -1526,3 +1526,15 @@ UnwrapOptionalBaseKeyPathApplication::attempt(ConstraintSystem &cs, Type baseTy,
return new (cs.getAllocator())
UnwrapOptionalBaseKeyPathApplication(cs, baseTy, rootTy, locator);
}
bool SpecifyLabelToAssociateTrailingClosure::diagnose(const Solution &solution,
bool asNote) const {
return false;
}
SpecifyLabelToAssociateTrailingClosure *
SpecifyLabelToAssociateTrailingClosure::create(ConstraintSystem &cs,
ConstraintLocator *locator) {
return new (cs.getAllocator())
SpecifyLabelToAssociateTrailingClosure(cs, locator);
}