edlang/programs/simple.ed

14 lines
199 B
Plaintext
Raw Normal View History

2024-01-30 17:05:14 +00:00
mod Main {
2024-02-03 09:24:44 +00:00
fn main(argc: i32) -> i32 {
let mut x: i32 = 2;
x = 4;
2024-02-03 11:06:16 +00:00
let y: i32 = other(2);
2024-01-30 17:05:14 +00:00
return x;
}
2024-02-03 11:06:16 +00:00
fn other(a: i32) -> i32 {
return a;
}
2024-01-30 17:05:14 +00:00
}