Skip to content

Fix type inferencing for generic method assignment #1199

@eric-milles

Description

@eric-milles

Consider the following:

Optional.of(123).map(Arrays.&asList)
List<Integer> empty = Arrays.asList()
Function<Integer, List<Integer>> f = Arrays.&asList

Target type is used to determine the generics for the first "asList" but not the others.

image

image

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions