new inference: address anonymous classes (IDEA-121063)

This commit is contained in:
Anna Kozlova
2014-02-20 21:06:11 +01:00
parent 0f023fa5ab
commit 217a1fd92f
3 changed files with 28 additions and 5 deletions

View File

@@ -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) {
}
}
}