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 9ef31a8 commit 3800e06Copy full SHA for 3800e06
compiler/ml/printtyp.ml
@@ -1614,7 +1614,11 @@ let print_variant_configuration_issue ppf
1614
@{<info>@tag@} configuration, or no @{<info>@tag@} at all."
1615
| Incompatible_constructor_count {constructor_names} ->
1616
let total_constructor_count = List.length constructor_names in
1617
- let constructor_names_to_print = constructor_names |> List.take 3 in
+ let constructor_names_to_print =
1618
+ match constructor_names with
1619
+ | a :: b :: c :: _ -> [a; b; c]
1620
+ | names -> names
1621
+ in
1622
let not_printed_constructor_count =
1623
total_constructor_count - List.length constructor_names_to_print
1624
in
0 commit comments