Nicolas Cannasse 17 年之前
父节点
当前提交
3f8503482c
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      doc/CHANGES.txt
  2. 1 1
      typer.ml

+ 3 - 0
doc/CHANGES.txt

@@ -1,5 +1,8 @@
 2008-??-??: 1.19
 	fixed flash9 Array.toString
+	fixed inline return bug
+	TODO haxe/f9 : inline code can give bad file in debug infos
+	TODO haxe/f9 var x = if( true ) Math.POSITIVE_INFINITY : 0.; VerifyError
 
 2008-02-23: 1.18
 	some optimization and bugfix for as3 codegen

+ 1 - 1
typer.ml

@@ -2125,7 +2125,7 @@ and type_inline ctx f ethis params tret p =
 			if not term then error "Cannot inline a not final return" e.epos;
 			(match eo with
 			| None -> mk (TConst TNull) (mk_mono()) p
-			| Some e -> Transform.map (map term) e)
+			| Some e -> map term e)
 		| TFor (v,t,e1,e2) ->
 			{ e with eexpr = TFor (local v,t,map false e1,map false e2) }
 		| TMatch (e,en,cases,def) ->