navid/haze / 13ba2f33894c67a16c9bf8afb859ffc1b9f11d054fe58f1e57ae1d2d57994a9b / samples/baseline_2.1/propagation_success.hz
propagation_success.hz
← samples/baseline_2.1 · 153 bytes · raw · download
pure fn square(x i32) i32 => x * x
fn need_square(n i32) i32
: pre n >= 0
=> square(n)
fn main() {
const n = 6
print(need_square(n))
}