Skip to content

Fix type inferencing for Stream#toArray(IntFunction) #1110

@eric-milles

Description

@eric-milles

Consider the following:

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

The type of "array" should be String[], but is displayed as A[] which is the type parameter of the method.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions