Nicolas Cannasse преди 9 години
родител
ревизия
a1e68318bb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      genhl.ml

+ 1 - 1
genhl.ml

@@ -706,7 +706,7 @@ let rec to_type ?tref ctx t =
 			t
 		) in
 		(match td.t_path with
-		| [], "Null" when is_nullable t -> HNull t
+		| [], "Null" when not (is_nullable t) -> HNull t
 		| _ -> t)
 	| TLazy f ->
 		to_type ?tref ctx (!f())