Przeglądaj źródła

[inline] dodge C# cast problem

see #7617
Simon Krajewski 6 lat temu
rodzic
commit
34cbf11ae2
1 zmienionych plików z 1 dodań i 1 usunięć
  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));
 					| _ ->
 						()