Skip to content

"Not found" could be more descriptive #23585

@odersky

Description

@odersky

Compiler version

3.7

Minimized example

def test[T] = println(T)

Output

1 |def test[T] = println(T)
  |                      ^
  |                      Not found: T
  |

Expectation

It would be helpful if the compiler said "I found a type T but I am looking for a term here", or something like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:reportingError reporting including formatting, implicit suggestions, etcbetter-errorsIssues concerned with improving confusing/unhelpful diagnostic messagesitype:enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions