2
0
Эх сурвалжийг харах

[inline] dodge C# cast problem

see #7617
Simon Krajewski 6 жил өмнө
parent
commit
34cbf11ae2

+ 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));
 					| _ ->
 						()