Nicolas Cannasse 13 anni fa
parent
commit
c4c08adccf
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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