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

No references found for members of Groovy class referenced within 'with' closure #788

Closed
mauromol opened this issue Jan 7, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@mauromol
Copy link

mauromol commented Jan 7, 2019

Follow up of #364.

Consider this Groovy class:

package test45

class Test45 {
  static class Foo {
	  String someString = 'foo'
  }
  
  static class Bar {
	  String someString = 'bar'
	  Foo foo = new Foo()
	  
	  void doSomething() {
		  foo.with {
			  println "someString inside with closure = $someString"
			  println "someString of owner inside with closure = $owner.someString"
			  owner.someString
			  someString
|		  }
	  }
  }
  
  static main(args) {
	  Bar b = new Bar()
	  println "b.someString = $b.someString"
	  println "b.foo.someString = $b.foo.someString"
	  b.doSomething()
  }
}

Try to invoke Call Hierarchy or Search for References for either Foo.someString or Bar.someString: no references at all is found for either of them.

@eric-milles eric-milles self-assigned this Jan 7, 2019
@eric-milles eric-milles added the bug label Jan 7, 2019
@eric-milles eric-milles added this to the v3.3.0 milestone Jan 7, 2019
@eric-milles
Copy link
Member

Ready to test

@mauromol
Copy link
Author

mauromol commented Jan 8, 2019

Verified with 3.3.0.xx-201901072218-e49, works well, thank you! 👍

@mauromol mauromol closed this as completed Jan 8, 2019
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

2 participants