Browse Source

fixed issue #897

Nicolas Cannasse 13 years ago
parent
commit
c4c08adccf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      typer.ml

+ 2 - 0
typer.ml

@@ -1367,6 +1367,8 @@ and type_expr_with_type_raise ctx e t =
 			exc ->
 				ctx.param_type <- old;
 				raise exc)
+	| EBlock [] ->
+		type_expr ctx e
 	| EBlock l ->
 		let locals = save_locals ctx in
 		let rec loop = function