Skip to content

Scala Anonymous Classes and Subclasses Missing Precise Code Intelligence Reference #414

@wchau

Description

@wchau

lsif-java version: 0.7.7

Type of code: Anonymous Classes and Subclasses

Expected behavior: In Anonymous Classes, use of its fields and methods outside of its class's definition should show up in "Find References". By extension, in Anonymous Subclasses, overridden methods should have abstract / base methods show up in "Find References".

Actual behavior: In Anonymous Classes, use of its fields and methods outside of its class's definition does not show up in "Find References". By extension, in Anonymous Subclasses, overridden methods do not have abstract / base methods show up in "Find References".

val a = new {
  val b = 1
}
a.b
trait A {
  def B(): Unit
}
val a = new A {
  override B(): Unit = {
    print("Hello")
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions