Closed
Description
// Fatal error: exception Assert_failure("boot/me/trans.ml", 2912, 6)
iter x() -> int {
}
fn f() -> bool {
for each (int i in x()) {
ret true;
}
ret false;
}
fn main(vec[str] args) -> () {
}
But if you change the return type to (), different error:
// E:Assembly error: unrecognized quad 41: jmp <none>
iter x() -> int {
}
fn f() -> () {
for each (int i in x()) {
ret;
}
}
fn main(vec[str] args) -> () {
}
Metadata
Metadata
Assignees
Labels
No labels