Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

synthetic super call positioning is suboptimal #8389

Open
scabug opened this issue Mar 10, 2014 · 1 comment
Open

synthetic super call positioning is suboptimal #8389

scabug opened this issue Mar 10, 2014 · 1 comment

Comments

@scabug
Copy link

scabug commented Mar 10, 2014

Side issue noticed in #8367, the error message related to a synthetic super call is positioned confusingly at a comment.

class C



// comment

Positioned as:

[[syntax trees at end of                    parser]] // newSource1.scala
[6]package [6]<empty> {
  [6]class C extends [7][21]scala.AnyRef {
    [21]def <init>() = [21]{
      [NoPosition][NoPosition][NoPosition]super.<init>();
      [21]()
    }
  }
}

This led me to try this patch: scala/scala#3612

But there is a bit more work needed to finesse this (as always with positions), so I'm lodging this as a ticket for now.

@scabug
Copy link
Author

scabug commented Mar 10, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8389?orig=1
Reporter: @retronym
Affected Versions: 2.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants