edlang/lib/edlang_driver/tests/programs/if_if_false.ed

15 lines
168 B
Rust
Raw Normal View History

2024-04-13 08:38:25 +00:00
fn main() -> i32 {
2024-05-07 07:11:09 +00:00
let mut foo: i32 = 7;
2024-04-13 08:38:25 +00:00
if true {
if false {
return 1;
}
} else {
foo = 14;
}
return foo;
}