We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d78c58 commit c8a8e08Copy full SHA for c8a8e08
jscomp/core/lam_constant_convert.ml
@@ -50,6 +50,9 @@ let rec convert_constant (const : Lambda.structured_constant) : Lam_constant.t =
50
Const_int { i = Int32.of_int i; comment = Pt_assertfalse }
51
| Pt_constructor { name; const; non_const; attrs } ->
52
let tag_type = Ast_untagged_variants.process_tag_type attrs in
53
+ let i = match tag_type with
54
+ | Some(Ast_untagged_variants.Int(v)) -> v
55
+ | _ -> i in
56
Const_int
57
{
58
i = Int32.of_int i;
0 commit comments