navid/haze / 48b013122efd104b9d16cfe4274727f898f9adfe2ce7378143f220c18de31b41 / 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))
}