slige/examples/add_fn.slg

15 lines
147 B
Plaintext
Raw Normal View History

2024-12-10 23:22:13 +00:00
2024-12-11 02:11:00 +00:00
fn main() -> int {
2024-12-10 23:22:13 +00:00
add(1, 2)
}
fn add(a: int, b: int) -> int {
2024-12-11 02:11:00 +00:00
let c = a;
let d = b;
{
let a = c;
+ a d
}
2024-12-10 23:22:13 +00:00
}
2024-12-11 11:36:19 +00:00