peon/tests/closures.pn

10 lines
114 B
Plaintext

fn makeClosure(n: int): fn: int {
fn inner: int {
return n;
}
return inner;
}
makeClosure(1)();