closes #7295
@@ -181,6 +181,7 @@ let raise_position_of_type t =
| TMono r -> (match !r with None -> raise_position [null_pos] | Some t -> follow_null t)
| TLazy f -> follow_null (lazy_type f)
| TAbstract({a_path = [],"Null"},[t]) -> follow_null t
+ | TDynamic _ -> !t_dynamic_def
| _ -> t
in
try