File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -555,7 +555,8 @@ class JSONFixitWriter : public DiagnosticConsumer {
555
555
return true ;
556
556
557
557
// Do not add a semi as it is wrong in most cases during migration
558
- if (Info.ID == diag::statement_same_line_without_semi.ID )
558
+ if (Info.ID == diag::statement_same_line_without_semi.ID ||
559
+ Info.ID == diag::expected_separator.ID )
559
560
return false ;
560
561
// The following interact badly with the swift migrator, they are undoing
561
562
// migration of arguments to preserve the no-label for first argument.
Original file line number Diff line number Diff line change @@ -142,3 +142,9 @@ var graph: Graph3
142
142
143
143
class GraphNoFix < NodeType : SomeProt > { }
144
144
var graph : GraphNoFix
145
+
146
+ func evilCommas( s: String ) {
147
+ _ = s [ s. startIndex..< < #editorplaceholder#> ]
148
+ _ = true ? s [ s. startIndex..< < #editorplaceholder#> ] : " "
149
+ _ = [ s. startIndex..< < #editorplaceholder#> ]
150
+ }
Original file line number Diff line number Diff line change @@ -145,3 +145,9 @@ var graph: Graph3<AnyObject>
145
145
146
146
class GraphNoFix<NodeType : SomeProt> {}
147
147
var graph: GraphNoFix
148
+
149
+ func evilCommas(s: String) {
150
+ _ = s[s.startIndex..<<#editorplaceholder#>]
151
+ _ = true ? s[s.startIndex..<<#editorplaceholder#>] : ""
152
+ _ = [s.startIndex..<<#editorplaceholder#>]
153
+ }
You can’t perform that action at this time.
0 commit comments