Skip to content

Code select and find references on implicit-this field or property in closure fails #939

@eric-milles

Description

@eric-milles

Consider the following:

class Pogo {
  String foo
}
class Test {
  void meth(Pogo pogo) {
    pogo.with {
      def f = foo
      foo = 'bar'
      foo += 'baz'
    }
  }
}

Searching for references of Pogo#foo fails to find the occurrences in the with block of Test#meth. Code hover and select also fails to refer back to the property. If @CompileStatic is added to the class or method, the operations work as expected.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions