Skip to content

Commit bacb8e6

Browse files
committed
Missing semicolon in type.ml, plus test to catch regression. Closes #113.
1 parent 2141154 commit bacb8e6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/boot/me/type.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ let check_stmt (cx:Semant.ctxt) : (fn_ctx -> Ast.stmt -> unit) =
771771
| Ast.STMT_ret (Some atom) ->
772772
if fn_ctx.fnctx_is_iter then
773773
Common.err None
774-
"iterators can't return values; did you mean 'put'?"
774+
"iterators can't return values; did you mean 'put'?";
775775
demand fn_ctx.fnctx_return_type (check_atom atom)
776776

777777
| Ast.STMT_ret None ->
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// error-pattern: mismatched types
2+
fn mk_int() -> uint {
3+
let int i = 3;
4+
ret i;
5+
}
6+
fn main() {
7+
}

0 commit comments

Comments
 (0)