File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ import NoSuchModule
10
10
11
11
// This is close enough to get typo-correction.
12
12
func test_short_and_close( ) {
13
- let foo = 4 // expected-note {{did you mean 'foo' }}
14
- let bab = fob + 1
15
- // expected-error@-1 {{cannot find 'fob' in scope}}
13
+ let boop = 4 // expected-note {{did you mean 'boop' declared here }}
14
+ let bab = bood + 1
15
+ // expected-error@-1 {{cannot find 'fob' in scope; did you mean 'foo'? }}
16
16
}
17
17
18
18
// This is not.
Original file line number Diff line number Diff line change 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 5 {{did you mean 'foo'? }}
6
- let _ = fob + 1 // expected-error {{cannot find 'fob ' in scope}}
7
- let _ = fob + 1 // expected-error {{cannot find 'fob ' in scope}}
8
- let _ = fob + 1 // expected-error {{cannot find 'fob ' in scope}}
9
- let _ = fob + 1 // expected-error {{cannot find 'fob ' in scope}}
10
- let _ = fob + 1 // expected-error {{cannot find 'fob ' in scope}}
11
- let _ = fob + 1 // expected-error {{cannot find 'fob ' in scope}}
5
+ let boop = 4 // expected-note 5 {{'boop' declared here }}
6
+ let _ = bood + 1 // expected-error {{cannot find 'bood ' in scope; did you mean 'boop'? }}
7
+ let _ = bood + 1 // expected-error {{cannot find 'bood ' in scope; did you mean 'boop'? }}
8
+ let _ = bood + 1 // expected-error {{cannot find 'bood ' in scope; did you mean 'boop'? }}
9
+ let _ = bood + 1 // expected-error {{cannot find 'bood ' in scope; did you mean 'boop'? }}
10
+ let _ = bood + 1 // expected-error {{cannot find 'bood ' in scope; did you mean 'boop'? }}
11
+ let _ = bood + 1 // expected-error {{cannot find 'bood ' in scope; did you mean 'boop'? }}
12
12
}
You can’t perform that action at this time.
0 commit comments