File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -557,6 +557,11 @@ class JSONFixitWriter : public DiagnosticConsumer {
557
557
// Do not add a semi as it is wrong in most cases during migration
558
558
if (Info.ID == diag::statement_same_line_without_semi.ID )
559
559
return false ;
560
+ // The following interact badly with the swift migrator, they are undoing
561
+ // migration of arguments to preserve the no-label for first argument.
562
+ if (Info.ID == diag::witness_argument_name_mismatch.ID ||
563
+ Info.ID == diag::missing_argument_labels.ID )
564
+ return false ;
560
565
561
566
if (Kind == DiagnosticKind::Error)
562
567
return true ;
Original file line number Diff line number Diff line change @@ -64,3 +64,15 @@ func ftest1() {
64
64
}
65
65
66
66
func ftest2( x x: Int -> Int ) { }
67
+
68
+ protocol SomeProt {
69
+ func protMeth( p: Int )
70
+ }
71
+ class Test2 : SomeProt {
72
+ func protMeth( _ p: Int )
73
+
74
+ func instMeth( p: Int )
75
+ func instMeth2 ( p: Int , p2: Int )
76
+ }
77
+ Test2 ( ) . instMeth( 0 )
78
+ Test2( ) . instMeth2 ( 0 , p2 : 1 )
Original file line number Diff line number Diff line change @@ -67,3 +67,15 @@ func ftest1() {
67
67
}
68
68
69
69
func ftest2(x: (Int) -> Int) {}
70
+
71
+ protocol SomeProt {
72
+ func protMeth(p: Int)
73
+ }
74
+ class Test2 : SomeProt {
75
+ func protMeth(_ p: Int)
76
+
77
+ func instMeth(p: Int)
78
+ func instMeth2(p: Int, p2: Int)
79
+ }
80
+ Test2().instMeth(0)
81
+ Test2().instMeth2(0, p2:1)
You can’t perform that action at this time.
0 commit comments