Skip to content

Invalid caret position for missing given argument error messages #15630

@som-snytt

Description

@som-snytt

Compiler version

Welcome to Scala 3.2.1-RC1-bin-SNAPSHOT-git-baf21dd (18.0.1.1, Java OpenJDK 64-Bit Server VM).

Minimized code

scala> def f = summon[Int]
-- Error: --------------------------------------------------------------------------------------------------------------
1 |def f = summon[Int]
  |                   ^
  |                   No given instance of type Int was found for parameter x of method summon in object Predef
1 error found

Output

The caret doesn't seem to be aligned.

Expectation

The caret should be aligned with the guilty text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:reportingError reporting including formatting, implicit suggestions, etcitype:enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions