edlang/programs/simple.ed

16 lines
218 B
Plaintext
Raw Normal View History

2024-01-30 17:05:14 +00:00
mod Main {
2024-02-03 19:14:29 +00:00
pub fn main(argc: i32) -> i32 {
2024-02-03 09:24:44 +00:00
let mut x: i32 = 2;
x = 4;
2024-02-04 16:27:06 +00:00
a();
2024-02-04 15:21:02 +00:00
return x + 2;
2024-01-30 17:05:14 +00:00
}
2024-02-04 14:57:26 +00:00
pub fn a() {
let mut x: i32 = 2;
x = 4;
return;
}
2024-01-30 17:05:14 +00:00
}