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

Inner class of super class is not resolving without qualifier #974

Closed
eric-milles opened this issue Oct 18, 2019 · 1 comment
Closed

Inner class of super class is not resolving without qualifier #974

eric-milles opened this issue Oct 18, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@eric-milles
Copy link
Member

Consider the following:

Outer.java

package pack;

class Outer {
  enum Inner {
    CONST
  }
  Outer(Inner inner) {
  }
}

Other.groovy

package pack

class Other extends Outer {
  Other() {
    super(Inner.CONST)
  }
}

Unqualified reference "Inner" in the Groovy source has marker "Apparent variable 'Inner' was found in a static scope but doesn't refer to a local variable, static field or class." This use case works under groovyc.

@eric-milles eric-milles added this to the v3.6.0 milestone Oct 18, 2019
@eric-milles eric-milles self-assigned this Oct 18, 2019
@eric-milles
Copy link
Member Author

eric-milles commented Oct 18, 2019

See also GROOVY-8531 and GROOVY-9281

eric-milles added a commit that referenced this issue Oct 18, 2019
eric-milles added a commit that referenced this issue Oct 21, 2019
resolveToNestedOfCurrentClassAndSuperClasses is not needed anymore
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