-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
area:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -Xlintarea:reportingError reporting including formatting, implicit suggestions, etcError reporting including formatting, implicit suggestions, etcbetter-errorsIssues concerned with improving confusing/unhelpful diagnostic messagesIssues concerned with improving confusing/unhelpful diagnostic messagesitype:enhancement
Description
Compiler version
3.8.3-RC1-bin-20260123-506b8a0-NIGHTLY
Minimized example
object test {
type T = Int
def f[T] = ???
}Output Error/Warning message
$ scala-cli compile --server=false -S 3.7.4 shadow_id.scala -Wshadow:type-parameter-shadow
-- Warning: /home/ejbyfeldt/dev/scala_playground/shadow_id.scala:3:8 -----------
3 | def f[T] = ???
| ^
|Type parameter T for method f shadows the type defined by type T in object test
1 warning foundWhy this Error/Warning was not helpful
There is not error message id which is inconsistent with most other warnings.
Suggested improvement
It could be made more helpful by including a error message id.
Metadata
Metadata
Assignees
Labels
area:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -Xlintarea:reportingError reporting including formatting, implicit suggestions, etcError reporting including formatting, implicit suggestions, etcbetter-errorsIssues concerned with improving confusing/unhelpful diagnostic messagesIssues concerned with improving confusing/unhelpful diagnostic messagesitype:enhancement