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

Fix support for anon. inner with object initializer and further nested anon. types #926

Closed
eric-milles opened this issue Jul 23, 2019 · 0 comments
Assignees
Milestone

Comments

@eric-milles
Copy link
Member

Consider the following:

interface AA {}
interface BB<T> {}
interface CC<T extends AA> {}
interface DD<T extends AA & BB> {}

new AA() {
  {
    new BB() {}
  }
  public void whatever() {
    new BB() {}
    new CC() {
      {
        new DD() {}
      }
    }
  }
}

Anonymous inner types nested within the object initializers of anonymous inner types. Generics probably don't matter.

@eric-milles eric-milles self-assigned this Jul 23, 2019
@eric-milles eric-milles added this to the v3.5.0 milestone Jul 23, 2019
eric-milles added a commit that referenced this issue Jul 23, 2019
inner classes there; count anon. inner classes from 1 for each enclosing

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

No branches or pull requests

1 participant