Null doesn't take any arguments, so is that a new compiler bug ?
| Json.String s -> s
| _ -> raise_unexpected_json_type (Json.string_of_type j) "string" in
let lenient = function
- | Json.Null _ -> ""
+ | Json.Null -> ""
| Json.String s -> s
| Json.Array a ->
if Array.length a = 0 then
| Json.Int i -> Int64.to_int i
| _ -> raise_unexpected_json_type (Json.string_of_type j) "int" in
let lenient = function
- | Json.Null _ -> 0
+ | Json.Null -> 0
| Json.Bool b -> if b then 1 else 0
| Json.Int i -> Int64.to_int i
| Json.Array a ->
| Json.Int i -> i
| _ -> raise_unexpected_json_type (Json.string_of_type j) "int64" in
let lenient = function
- | Json.Null _ -> 0L
+ | Json.Null -> 0L
| Json.Bool b -> if b then 1L else 0L
| Json.Int i -> i
| Json.Array a ->
| Json.Bool b -> b
| _ -> raise_unexpected_json_type (Json.string_of_type j) "bool" in
let lenient = function
- | Json.Null _ -> false
+ | Json.Null -> false
| Json.Bool b -> b
| Json.Int i -> i <> 0L
| Json.Array a ->