Explorar o código

[inline] dodge C# cast problem

see #7617
Simon Krajewski %!s(int64=6) %!d(string=hai) anos
pai
achega
34cbf11ae2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/optimization/inline.ml

+ 1 - 1
src/optimization/inline.ml

@@ -510,7 +510,7 @@ class inline_state ctx ethis params cf f p = object(self)
 				if not (self#read v).i_outside then begin
 					v.v_type <- map_type v.v_type;
 					match v.v_extra with
-					| Some(tl,Some e) ->
+					| Some(tl,Some e) when ctx.com.platform <> Cs ->
 						v.v_extra <- Some(tl,Some (map_expr_type e));
 					| _ ->
 						()