slige/examples/add_fn.slg
2024-12-11 12:36:19 +01:00

15 lines
147 B
Plaintext

fn main() -> int {
add(1, 2)
}
fn add(a: int, b: int) -> int {
let c = a;
let d = b;
{
let a = c;
+ a d
}
}