Skip to content

Qualifier of synthetic select applyDynamicNamed should have an opaque position #8130

Open
@scabug

Description

@scabug

The kind of position assigned to the qualifier d in the below example is incorrect, and this result in incorrect hyperlinking and semantic highlighting in the Scala IDE

object X {
      val d = new D
      d(10) // <-- hyperlinking on `d` should jump to the declaration just above
    }

import language.dynamics
class D extends Dynamic {
  def applyDynamic(name: String)(value: Any) = ???
}

Hyperlinking on d should resolve to the declaration of d, not the applyDynamic method in class D.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions