navid/haze / ea08ceb46539df9cf3ac396bc0bd66fc4f6b9adc630e1596e79b8e4d3101673a / samples/baseline_2.2/string_contract_error.hz
string_contract_error.hz
← samples/baseline_2.2 · 136 bytes · raw · download
pure fn nonempty(s str) bool => s != ""
fn need_text(s str) str
: pre nonempty(s)
=> s
fn main() {
print(need_text(""))
}