File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,8 @@ class JSONFixitWriter : public DiagnosticConsumer {
560
560
// The following interact badly with the swift migrator, they are undoing
561
561
// migration of arguments to preserve the no-label for first argument.
562
562
if (Info.ID == diag::witness_argument_name_mismatch.ID ||
563
- Info.ID == diag::missing_argument_labels.ID )
563
+ Info.ID == diag::missing_argument_labels.ID ||
564
+ Info.ID == diag::override_argument_name_mismatch.ID )
564
565
return false ;
565
566
566
567
if (Kind == DiagnosticKind::Error)
Original file line number Diff line number Diff line change @@ -86,5 +86,8 @@ class Test2 : SomeProt {
86
86
func instMeth( p: Int ) { }
87
87
func instMeth2( p: Int , p2: Int ) { }
88
88
}
89
+ class SubTest2 : Test2 {
90
+ override func instMeth( _ p: Int ) { }
91
+ }
89
92
Test2 ( ) . instMeth ( 0 )
90
93
Test2 ( ) . instMeth2 ( 0 , p2: 1 )
Original file line number Diff line number Diff line change @@ -89,5 +89,8 @@ class Test2 : SomeProt {
89
89
func instMeth(p: Int) {}
90
90
func instMeth2(p: Int, p2: Int) {}
91
91
}
92
+ class SubTest2 : Test2 {
93
+ override func instMeth(_ p: Int) {}
94
+ }
92
95
Test2().instMeth(0)
93
96
Test2().instMeth2(0, p2:1)
You can’t perform that action at this time.
0 commit comments