diff options
Diffstat (limited to 'backend/CMtypecheck.ml')
-rw-r--r-- | backend/CMtypecheck.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/CMtypecheck.ml b/backend/CMtypecheck.ml index aacbf86f..72bf9cb4 100644 --- a/backend/CMtypecheck.ml +++ b/backend/CMtypecheck.ml @@ -323,7 +323,7 @@ let rec type_stmt env blk ret s = | Sreturn (Some e) -> begin match ret with | None -> raise (Error "return with argument") - | Some tret -> + | Some tret -> begin try unify (type_expr env [] e) (ty_of_typ tret) with Error s -> |