Skip to content

"type mismatch" errors do not always give a useful expected type #1430

Closed
@smarter

Description

@smarter
val x: List[String] = List(1)
error: type mismatch:
 found   : Int(1)
 required: A
  val x: List[String] = List(1)
                             ^

Note that it says required: A instead of required: String.

Metadata

Metadata

Assignees

Labels

area:reportingError reporting including formatting, implicit suggestions, etcarea:typer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions