Skip to content

Fix type inferencing, syntax highlighting and code navigation for extension methods that override Object methods #1076

@eric-milles

Description

@eric-milles

Consider the following:

String test(String[] array) {
   array.toString()
}

When executed, DefaultGroovyMethods.toString(Object[]) is used. However, it is displayed in the editor as Object.toString(). When static compilation is enabled, the extension method connection is clear.

image

vs.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions