File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ struct FixitFilter {
102
102
// Fixits from warnings/notes that should be applied.
103
103
if (Info.ID == diag::forced_downcast_coercion.ID ||
104
104
Info.ID == diag::forced_downcast_noop.ID ||
105
- Info.ID == diag::variable_never_mutated.ID ||
106
105
Info.ID == diag::function_type_no_parens.ID ||
107
106
Info.ID == diag::convert_let_to_var.ID ||
108
107
Info.ID == diag::parameter_extraneous_double_up.ID ||
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend -typecheck %s -swift-version 3
2
+ // RUN: rm -rf %t && mkdir -p %t && %target-swift-frontend -c -update-code -primary-file %s -emit-migrated-file-path %t/no_var_to_let.swift.result -swift-version 3 -o /dev/null
3
+ // RUN: diff -u %s %t/no_var_to_let.swift.result
4
+ // RUN: %target-swift-frontend -typecheck %s -swift-version 4
5
+
6
+ // Note that the diff run line indicates that there should be no change.
7
+
8
+ // The compiler should not suggest `let` instead of `var` here because
9
+ // it is a compile error to say `for let ...`.
10
+ // rdar://problem/32390726
11
+
12
+ for var i in 0 ..< 10 {
13
+ _ = i + 1
14
+ }
You can’t perform that action at this time.
0 commit comments