mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ConstraintSystem] Account for unapplied curried self while trying to retrieve function builder type for parameter
This commit is contained in:
@@ -6531,6 +6531,10 @@ static Type getFunctionBuilderTypeFor(ConstraintSystem &cs, unsigned paramIdx,
|
||||
return Type();
|
||||
|
||||
auto *choice = selectedOverload->choice.getDecl();
|
||||
bool skipCurriedSelf = hasAppliedSelf(cs, selectedOverload->choice);
|
||||
|
||||
if (choice->hasCurriedSelf() && !skipCurriedSelf)
|
||||
return Type();
|
||||
|
||||
if (!choice->hasParameterList())
|
||||
return Type();
|
||||
|
||||
Reference in New Issue
Block a user