File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -393,7 +393,12 @@ module DynamicChecks = struct
393
393
in
394
394
let literals_overlaps_with_number () =
395
395
Ext_list. exists literal_cases (function
396
- | Int _ | Float _ | Bigint _ -> true
396
+ | Int _ | Float _ -> true
397
+ | _ -> false )
398
+ in
399
+ let literals_overlaps_with_bigint () =
400
+ Ext_list. exists literal_cases (function
401
+ | Bigint _ -> true
397
402
| _ -> false )
398
403
in
399
404
let literals_overlaps_with_boolean () =
@@ -416,7 +421,7 @@ module DynamicChecks = struct
416
421
typeof e != number
417
422
| FloatType when literals_overlaps_with_number () = false ->
418
423
typeof e != number
419
- | BigintType when literals_overlaps_with_number () = false ->
424
+ | BigintType when literals_overlaps_with_bigint () = false ->
420
425
typeof e != bigint
421
426
| BooleanType when literals_overlaps_with_boolean () = false ->
422
427
typeof e != boolean
You can’t perform that action at this time.
0 commit comments