Skip to content

Fix type inferencing for class argument that does not match functional interface parameter #1111

@eric-milles

Description

@eric-milles

Consider the following:

void test(List<String> list) {
  def array = list.stream().toArray(String)
}

Call to "toArray" does not match either "toArray()" or "toArray(IntFunction)". Therefore, it should be displayed 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