Skip to content

Fix type inferencing and code navigation for non-delegated method #1262

@eric-milles

Description

@eric-milles

Consider the following:

class A {
  def foo() {
    print 'A'
  }
}

class B {
  @Delegate A a = new A()
  def foo() {
    print 'B'
  }
}

new B().foo()

In this case, the method "foo()" is not delegated to A, which can be seen by running the script. However code hover states the method comes from class A.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions