Add test for LetElse
case.
Postfix completion is not triggered.
This commit is contained in:
parent
8535f2bb1b
commit
2666e6eda8
@ -571,6 +571,13 @@ fn main() {
|
||||
r#"fn main() { let x = if true {1} else {2}.$0 }"#,
|
||||
r#"fn main() { let x = unsafe { if true {1} else {2} } }"#,
|
||||
);
|
||||
|
||||
// completion will not be triggered
|
||||
check_edit(
|
||||
"unsafe",
|
||||
r#"fn main() { let x = true else {panic!()}.$0}"#,
|
||||
r#"fn main() { let x = true else {panic!()}.unsafe}"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
x
Reference in New Issue
Block a user