Skip to content

Fix type inferencing, syntax highlighting and import organization for static import of callable property #1309

@eric-milles

Description

@eric-milles

Consider the following:

import static WithCall.callable_property

class WithCall {
  static final WithCall callable_property = new WithCall()
  String call(String string) {
    return string
  }
}

print callable_property('works')

The method call expression callable_property(...) references the method "call" in highlighting and navigation. It should reference the static property since "call" is implicit. Also, the Organize Imports action (Ctrl+Shift+O) removes the static import.

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions