Does this make sense to anyone? :confused:
# groovy
v
Does this make sense to anyone? 😕
Ah, trying to access the instance property from a static method. 🙈 The error message - or rather the suggested solution - still does not make sense though.
p
yeah, that could be improved do you have a really quick reproducer? I can probably make one up, just thought you might have something handy
Copy code
class Foo {
  def getFoo() { null }
  static bar() { { foo }() }
}
new Foo().bar()
Or just
Copy code
class Foo {
  def getFoo() { null }
  static main(String... args) { { foo }() }
}
It happened to me in Groovy 3 in a Gradle 8.14.3 test of a plugin written in Groovy