Explorar o código

declare typed_cast feature if we generate a typed cast while inlining

Simon Krajewski %!s(int64=12) %!d(string=hai) anos
pai
achega
cbafabf3df
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      optimizer.ml

+ 1 - 0
optimizer.ml

@@ -387,6 +387,7 @@ let rec type_inline ctx cf f ethis params tret config p force =
 						| TInst(c,_) -> Some (TClassDecl c)
 						| _ -> None
 					in
+					add_feature ctx.com "typed_cast";
 					mk (TCast (e,ct)) tret e.epos)
 			with Unify_error _ ->
 				mk (TCast (e,None)) tret e.epos)