Skip to content

Fix type inferencing and syntax highlighting for trait closures #1552

@eric-milles

Description

@eric-milles

Consider the following:

trait T {
  def f() {
    ['a'].collect{ String s -> g(s) }
  }
  private String g(String s) {
    s.toUpperCase()
  }
}

Both "collect" and "g" show as unknown (underlined).

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions