@@ -2994,7 +2994,8 @@ let generate con =
in
let nullable_basic t = match gen.gfollow#run_f t with
- | TType({ t_path = ([],"Null") }, [t]) when is_cs_basic_type t ->
+ | TType({ t_path = ([],"Null") }, [t])
+ | TAbstract({ a_path = ([],"Null") }, [t]) when is_cs_basic_type t ->
Some(t)
| _ ->
None
@@ -2476,6 +2476,7 @@ let generate con =
let is_int t = like_int t in
+ | TAbstract({ a_path = ([],"Null") }, [t])
| TType({ t_path = ([],"Null") }, [t]) when is_java_basic_type t ->