Properly report error when object type param default references self
This commit is contained in:
parent
99768c80a1
commit
ea9a253ff1
11 changed files with 71 additions and 21 deletions
|
@ -353,7 +353,13 @@ hir_analysis_missing_type_params =
|
|||
[one] reference
|
||||
*[other] references
|
||||
} to {$parameters}
|
||||
.note = because of the default `Self` reference, type parameters must be specified on object types
|
||||
.note = because the parameter {$parameterCount ->
|
||||
[one] default references
|
||||
*[other] defaults reference
|
||||
} `Self`, the {$parameterCount ->
|
||||
[one] parameter
|
||||
*[other] parameters
|
||||
} must be specified on the object type
|
||||
|
||||
hir_analysis_multiple_relaxed_default_bounds =
|
||||
type parameter has more than one relaxed default bound, only one is supported
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue