Skip to content

Fix type inferencing for method generics determined from functional elements #1627

@eric-milles

Description

@eric-milles

Consider the following:

class Named { String name }
@groovy.transform.TypeChecked
void test() {
  def c = Collectors.groupingBy(Named::getName)
}

The type checker is able to work out the collector type arguments as evidenced by hovering over the variable.

Image

However the type given for the method is not quite complete.

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions