mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
new inference: address anonymous classes (IDEA-121063)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import java.util.function.Function;
|
||||
|
||||
class TypeDetectionTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
new Table<String>(Function.identity()) {{}};
|
||||
new Table<String>(Function.identity());
|
||||
new Table<String>(x -> x) {{}};
|
||||
|
||||
}
|
||||
|
||||
public static class Table<T> {
|
||||
public Table(Function<T, T> f) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user