Skip to content

Fix type inferencing and syntax highlighting for outer class field vs. dynamic property #1468

@eric-milles

Description

@eric-milles

Consider the following:

class Outer {
  private static int VALUE = 1
  static class Inner {
    @Delegate Map<String,?> map
    void test() {
      VALUE
    }
  }
}

Variable expression "VALUE" is highlighted as map property. Absent of fix for GROOVY-10985, this resolves to the outer static field.

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions