Skip to content

Fix type inferencing and syntax highlighting for anonymous inner class in script field initializer #1656

@eric-milles

Description

@eric-milles

Consider the following:

class C extends Script {
  private Object o = new Object() {}
  @Override
  def run() {
    print("")
  }
}

or

@Field Object o = new Object() {}

void test() {
  print("")
}

The anon. inner class that initialized field "o" cannot be located and so type inferencing breaks down.

Image Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions