mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #71709 from calda/cal--65921
[SE-0286] Fix issue where forward scanning default value heuristic wouldn't be applied in Swift 6 mode
This commit is contained in:
@@ -563,8 +563,6 @@ static bool matchCallArgumentsImpl(
|
||||
// backward-match rule that skips this parameter if doing so is the only
|
||||
// way to successfully match arguments to parameters.
|
||||
if (!parameterRequiresArgument(params, paramInfo, paramIdx) &&
|
||||
!param.getPlainType()->getASTContext().LangOpts.hasFeature(
|
||||
Feature::ForwardTrailingClosures) &&
|
||||
anyParameterRequiresArgument(
|
||||
params, paramInfo, paramIdx + 1,
|
||||
nextArgIdx + 1 < numArgs
|
||||
|
||||
Reference in New Issue
Block a user