mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #33149 from hborla/function-builder-body-result-diags
[Function Builders] Teach diagnostics about function builder body result types...
This commit is contained in:
@@ -7556,10 +7556,9 @@ bool ConstraintSystem::resolveClosure(TypeVariableType *typeVar,
|
||||
|
||||
// If there is a function builder to apply, do so now.
|
||||
if (functionBuilderType) {
|
||||
auto *calleeLocator = getCalleeLocator(getConstraintLocator(locator));
|
||||
if (auto result = matchFunctionBuilder(
|
||||
closure, functionBuilderType, closureType->getResult(),
|
||||
ConstraintKind::Conversion, calleeLocator, locator)) {
|
||||
ConstraintKind::Conversion, locator)) {
|
||||
return result->isSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user