Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.1-RC3
    • Fix Version/s: Scala 2.10.2-RC1
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Activity

        Show
        James Iry added a comment - https://github.com/scala/scala/pull/2212

          People

          • Assignee:
            Iulian Dragos
            Reporter:
            Iulian Dragos
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development