navid/haze / ea08ceb46539df9cf3ac396bc0bd66fc4f6b9adc630e1596e79b8e4d3101673a / samples/baseline_2.4/dead_division_edges.hz

dead_division_edges.hz

← samples/baseline_2.4 · 263 bytes · raw · download

pure fn choose(flag bool) i32 {
    if flag {
        return 1
    }
    if false {
        return 1 / 0
    }
    return 2
}

fn main() {
    const a = false && (1 / 0 == 0)
    const b = true || (1 / 0 == 0)
    print(a)
    print(b)
    print(choose(false))
}