Skip to content

Incorrect underlined position in error message when line contains tabs #2063

@smarter

Description

@smarter
$ echo "\tclass Foo extends Bar" > tab.scala
$ dotc tab.scala
-- [E006] Unbound Identifier Error: try/tab.scala ------------------------------
1 |     class Foo extends Bar
  |                  ^^^
  |                  not found: type Bar
$ scalac tab.scala
tab.scala:1: error: not found: type Bar
        class Foo extends Bar
                          ^

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions