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

Bad range position for super type #7224

Closed
scabug opened this issue Mar 7, 2013 · 2 comments
Closed

Bad range position for super type #7224

scabug opened this issue Mar 7, 2013 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Mar 7, 2013

The following tree gets an OffsetPosition for the parent when there's an inferred type parameter. This is a fairly common pattern in Lift, and prevents any useful operation on the super type (like hyperlinking).

class BadPos[A](a: A)
class GoodPos(a: AnyRef)

object sessionId extends BadPos(new Object)
object goodParent extends GoodPos(null)

The positions, reduced for readability:

48:91]object sessionId extends [65:91][73]BadPos[Object] {...
92:131]object goodParent extends [110:131][118:125]GoodPos {..

Notice that the BadPos tree has an offset position.

@scabug
Copy link
Author

scabug commented Mar 7, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7224?orig=1
Reporter: @dragos
Affected Versions: 2.10.1-RC3

@scabug
Copy link
Author

scabug commented Mar 8, 2013

@JamesIry said:
scala/scala#2212

@scabug scabug closed this as completed Mar 8, 2013
@scabug scabug added this to the 2.10.2-RC1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants