feat: replace end2end test and add more test
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
[expected_return_code]
|
||||
30
|
||||
|
||||
[code]
|
||||
fn main() -> i32 {
|
||||
let a = 10;
|
||||
let b: i32 = 20;
|
||||
let c = a + b;
|
||||
{
|
||||
// Shadow 'a' and 'c' in a new scope
|
||||
let a = 5;
|
||||
let c = a + b;
|
||||
}
|
||||
return c; // Should return 30, not 25, because the inner 'c' is dropped
|
||||
}
|
||||
Reference in New Issue
Block a user