mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
java inference: tolerate raw upper bound (IDEA-229998)
GitOrigin-RevId: 90a888a80d9bd304fa908e5ae10a52ecc639752d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
50c060dd5d
commit
8ccd8d71e4
@@ -0,0 +1,10 @@
|
||||
import java.util.List;
|
||||
class MyTest {
|
||||
void m(List<? extends Bar> bars) {
|
||||
n(bars.get(0));
|
||||
bars.forEach(b -> n(b));
|
||||
bars.forEach(MyTest::n);
|
||||
}
|
||||
private static <T> void n(Bar<T> bar) { }
|
||||
private static class Bar<T> { }
|
||||
}
|
||||
Reference in New Issue
Block a user