Skip to content

Fix type inferencing for closure argument to overloaded method with SAM type #1047

@eric-milles

Description

@eric-milles

Consider the following:

def test(List<String> strings) {
  strings.toArray(String[]::new)
}

"toArray" under Java 11+ should refer to method that accepts an IntFunction.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions