Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
eric-milles opened this issue Aug 9, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@eric-milles
Copy link
Member

eric-milles commented Aug 9, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant