failing test

This commit is contained in:
Aleksey Kladov 2021-08-02 14:24:34 +03:00
parent df0936b4af
commit 71cd67fe47

View File

@ -306,4 +306,25 @@ pub mod prelude {
"#]],
);
}
#[test]
fn local_variable_shadowing() {
// FIXME: this isn't actually correct, should emit `x` only once.
check(
r#"
fn main() {
let x = 92;
{
let x = 92;
x$0;
}
}
"#,
expect![[r#"
lc x i32
lc x i32
fn main() fn()
"#]],
);
}
}