2
2
3
3
// This is close enough to get typo-correction.
4
4
func test_short_and_close( ) {
5
- let foo = 4 // expected-note {{did you mean 'foo'?}}
5
+ let foo = 4
6
6
let bab = fob + 1 // expected-error {{use of unresolved identifier}}
7
7
}
8
8
@@ -18,7 +18,7 @@ func *(x: Whatever, y: Whatever) {}
18
18
// This works even for single-character identifiers.
19
19
func test_very_short( ) {
20
20
// Note that we don't suggest operators.
21
- let x = 0 // expected-note {{did you mean 'x'?}}
21
+ let x = 0
22
22
let longer = y // expected-error {{use of unresolved identifier 'y'}}
23
23
}
24
24
@@ -29,21 +29,21 @@ func test_own_initializer() {
29
29
30
30
// Report candidates that are the same distance in different ways.
31
31
func test_close_matches( ) {
32
- let match1 = 0 // expected-note {{did you mean 'match1'?}}
33
- let match22 = 0 // expected-note {{did you mean 'match22'?}}
32
+ let match1 = 0
33
+ let match22 = 0
34
34
let x = match2 // expected-error {{use of unresolved identifier 'match2'}}
35
35
}
36
36
37
37
// Report not-as-good matches if they're still close enough to the best.
38
38
func test_keep_if_not_too_much_worse( ) {
39
- let longmatch1 = 0 // expected-note {{did you mean 'longmatch1'?}}
40
- let longmatch22 = 0 // expected-note {{did you mean 'longmatch22'?}}
39
+ let longmatch1 = 0
40
+ let longmatch22 = 0
41
41
let x = longmatch // expected-error {{use of unresolved identifier 'longmatch'}}
42
42
}
43
43
44
44
// Report not-as-good matches if they're still close enough to the best.
45
45
func test_drop_if_too_different( ) {
46
- let longlongmatch1 = 0 // expected-note {{did you mean 'longlongmatch1'?}}
46
+ let longlongmatch1 = 0
47
47
let longlongmatch2222 = 0
48
48
let x = longlongmatch // expected-error {{use of unresolved identifier 'longlongmatch'}}
49
49
}
@@ -61,8 +61,8 @@ func test_too_many_same() {
61
61
62
62
// But if some are better than others, just drop the worse tier.
63
63
func test_too_many_but_some_better( ) {
64
- let mtch1 = 0 // expected-note {{did you mean 'mtch1'?}}
65
- let mtch2 = 0 // expected-note {{did you mean 'mtch2'?}}
64
+ let mtch1 = 0
65
+ let mtch2 = 0
66
66
let match3 = 0
67
67
let match4 = 0
68
68
let match5 = 0
0 commit comments