navid/haze / 90400c3cb2eb4f37a299a5eb96dbf6c3ad2fda3fc79b7a824ce800f18386f55d / 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(""))
}