mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Deserialization] Require labels to match when looking for closely-matching clang declarations
This commit is contained in:
@@ -2013,7 +2013,8 @@ namespace {
|
||||
return TypeComparison::Equal;
|
||||
|
||||
if (nearMatchOk) {
|
||||
TypeMatchOptions options = TypeMatchFlags::AllowTopLevelOptionalMismatch;
|
||||
TypeMatchOptions options = TypeMatchFlags::RequireMatchingParameterLabels;
|
||||
options |= TypeMatchFlags::AllowTopLevelOptionalMismatch;
|
||||
options |= TypeMatchFlags::AllowNonOptionalForIUOParam;
|
||||
options |= TypeMatchFlags::IgnoreNonEscapingForOptionalFunctionParam;
|
||||
options |= TypeMatchFlags::IgnoreFunctionSendability;
|
||||
|
||||
Reference in New Issue
Block a user