mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
resolver: manually traverse nested block scopes
This commit is contained in:
parent
94aa3a7b1a
commit
2633e23f2b
4 changed files with 45 additions and 5 deletions
|
@ -961,3 +961,16 @@ fn issue_6852() {
|
|||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn param_overrides_fn() {
|
||||
check_types(
|
||||
r#"
|
||||
fn example(example: i32) {
|
||||
fn f() {}
|
||||
example;
|
||||
//^^^^^^^ i32
|
||||
}
|
||||
"#,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue