Sfoglia il codice sorgente

fix follow_without_null

Aleksandr Kuzmenko 6 anni fa
parent
commit
be3d5b6047
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/core/type.ml

+ 3 - 3
src/core/type.ml

@@ -810,12 +810,12 @@ let rec follow_without_null t =
 	match t with
 	| TMono r ->
 		(match !r with
-		| Some t -> follow t
+		| Some t -> follow_without_null t
 		| _ -> t)
 	| TLazy f ->
-		follow (lazy_type f)
+		follow_without_null (lazy_type f)
 	| TType (t,tl) ->
-		follow (apply_params t.t_params tl t.t_type)
+		follow_without_null (apply_params t.t_params tl t.t_type)
 	| _ -> t
 
 (** Assumes `follow` has already been applied *)