Skip to content

Fix type inferencing, syntax highlighting and code navigation for super-qualified reference to field #1131

@eric-milles

Description

@eric-milles

Consider the following:

abstract class A {
  def v
  private w
  public  x
  protected y
  @PackageScope z
  // getV() is implicit
  def getW() { w }
  def getX() { x }
  def getY() { y }
  def getZ() { z }
}
class C extends A {
  void test() {
    super.v
    super.x
    super.y
    super.z
  }
}

References "x", "y" and "z" in C should refer to the field, according to current compiler implementation, but are shown to refer to the getter/setter instead.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions