Unnamed repository; edit this file 'description' to name the repository.
Add more no-op tests
| -rw-r--r-- | crates/ide/src/typing.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/ide/src/typing.rs b/crates/ide/src/typing.rs index 62c6ae5c1d..99e7e3287d 100644 --- a/crates/ide/src/typing.rs +++ b/crates/ide/src/typing.rs @@ -401,6 +401,22 @@ fn f(x: u8) { type_char_noop( '=', r#" +fn f(x: u8) { + if x $0 {} +} +"#, + ); + type_char_noop( + '=', + r#" +fn f(x: u8) { + if x $0 0 {} +} +"#, + ); + type_char_noop( + '=', + r#" fn f() { g(i $0 0); } |