Skip to content

Fix type inferencing and syntax highlighting for bean-style use of setter with non-void return type #1025

@eric-milles

Description

@eric-milles

Consider the following:

class C {
  static boolean setFlag(boolean flag) {
    b = flag
  }
  private static boolean b
  static void print() {
    println b
  }
}
C.flag = true
C.print()

Expression "C.flag" is showing property "flag" as unknown (underlined). Groovy supports bean-style use of setters in this manner.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions