blob: 158c4d2e810db513d1c9d2342ca666a78d4e5c83 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -typo-correction-limit 5
// This is close enough to get typo-correction.
func test_short_and_close() {
let foo = 4 // expected-note 5 {{'foo' declared here}}
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope; did you mean 'foo'?}}
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope; did you mean 'foo'?}}
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope; did you mean 'foo'?}}
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope; did you mean 'foo'?}}
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope; did you mean 'foo'?}}
let _ = fob + 1 // expected-error {{cannot find 'fob' in scope}}
}