Skip to content

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

@eric-milles

Description

@eric-milles

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions