mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
new inference: ensure type parameters are not modified during ground type evaluation
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
class Test {
|
||||
|
||||
{
|
||||
Collector<Employee, ?, Map<Department, List<Employee>>> objectMapCollector = Collectors.groupingBy(Employee::getDepartment);
|
||||
}
|
||||
|
||||
private class Employee {
|
||||
public Department getDepartment() {
|
||||
return new Department();
|
||||
}
|
||||
}
|
||||
|
||||
private class Department {}
|
||||
}
|
||||
Reference in New Issue
Block a user