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 a17aa19 commit 288e508Copy full SHA for 288e508
jscomp/ml/typedecl.ml
@@ -1844,11 +1844,11 @@ let tys_of_constr_args = function
1844
1845
let report_error ppf = function
1846
| Repeated_parameter ->
1847
- fprintf ppf "A type parameter occurs several times"
+ fprintf ppf "A type parameter occurs several times. If this is a component, check duplicated props"
1848
| Duplicate_constructor s ->
1849
fprintf ppf "Two constructors are named %s" s
1850
| Duplicate_label s ->
1851
- fprintf ppf "Two labels are named %s" s
+ fprintf ppf "Two labels are named %s. If this is a component, check duplicated props" s
1852
| Recursive_abbrev s ->
1853
fprintf ppf "The type abbreviation %s is cyclic" s
1854
| Cycle_in_def (s, ty) ->
0 commit comments