Nicolas Cannasse 9 years ago
parent
commit
a1e68318bb
1 changed files with 1 additions and 1 deletions
  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())