Browse Source

fixed : block type order was reversed.

Nicolas Cannasse 20 years ago
parent
commit
7a5413ca1d
1 changed files with 3 additions and 1 deletions
  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;