Skip to content

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

@eric-milles

Description

@eric-milles

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions