We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beedf90 commit 6cdc49eCopy full SHA for 6cdc49e
jscomp/ml/variant_coercion.ml
@@ -43,7 +43,9 @@ let can_coerce_variant ~(path : Path.t)
43
let can_try_coerce_variant_to_primitive
44
((_, p, typedecl) : Path.t * Path.t * Types.type_declaration) =
45
match typedecl with
46
- | {type_kind = Type_variant constructors; type_params=[]} when Path.name p <> "bool"-> Some constructors
+ | {type_kind = Type_variant constructors; type_params = []}
47
+ when Path.name p <> "bool" ->
48
+ Some constructors
49
| _ -> None
50
51
let variant_representation_matches (c1_attrs : Parsetree.attributes)
0 commit comments