فهرست منبع

Merge branch 'development' of https://github.com/HaxeFoundation/haxe into issue3249-fix

杨博 11 سال پیش
والد
کامیت
c3a36f82c6
2فایلهای تغییر یافته به همراه0 افزوده شده و 3 حذف شده
  1. 0 1
      genpy.ml
  2. 0 2
      typeload.ml

+ 0 - 1
genpy.ml

@@ -916,7 +916,6 @@ module Transformer = struct
 
 		| ( _, TConst _ ) -> lift_expr a_expr
 		| ( _, TTypeExpr _ ) -> lift_expr a_expr
-		| ( _, TEnumParameter _ ) -> lift_expr a_expr
 		| ( _, TUnop _ ) -> assert false
 		| ( true, TWhile(econd, ebody, DoWhile) ) ->
 			let new_expr = trans false [] a_expr in

+ 0 - 2
typeload.ml

@@ -1715,8 +1715,6 @@ let init_class ctx c p context_init herits fields =
 		| Some e ->
 			let check_cast e =
 				(* insert cast to keep explicit field type (issue #1901) *)
-				let st = s_type (print_context()) in
-				if e.epos.pfile = "src/Main.hx" then Printf.printf "%s %s\n" (st e.etype) (st cf.cf_type);
 				if type_iseq e.etype cf.cf_type then
 					e
 				else begin match e.eexpr,follow cf.cf_type with