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())