slige/examples/add_fn.slg
2024-12-12 15:37:56 +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
}
}