浏览代码

fixed : block type order was reversed.

Nicolas Cannasse 20 年之前
父节点
当前提交
7a5413ca1d
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      typer.ml

+ 3 - 1
typer.ml

@@ -616,7 +616,9 @@ and type_expr ctx ?(need_val=true) (e,p) =
 		let rec loop = function
 			| [] -> []
 			| [e] -> [type_expr ctx ~need_val e]
-			| e :: l -> type_expr ctx ~need_val:false e :: loop l
+			| e :: l -> 
+				let e = type_expr ctx ~need_val:false e in
+				e :: loop l
 		in
 		let l = loop l in
 		ctx.locals <- locals;