Skip to content

Fix type inferencing and syntax highlighting for method with extension property of same name #1545

@eric-milles

Description

@eric-milles

Consider the following:

class More {
  static int getLength(Pogo pogo) { 0 }
}

class Pogo {
  int length() { 1 }
}

use (More) {
  def pogo = new Pogo()
  println pogo.length()
  println pogo.length
}

"length" of length() is highlighted as an extension method; it is a standard instance method reference. The script prints "1 0" as expected, indicating that the runtime correctly selects the instance and property method respectively.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions