anonymous -> lambda: do not collapse to lambda functional interfaces with generics methods, accepted by method refs though

This commit is contained in:
Anna Kozlova
2014-05-26 07:46:09 +04:00
parent bfc443c807
commit d2c04b864f
4 changed files with 46 additions and 1 deletions
@@ -0,0 +1,14 @@
// "Replace with lambda" "false"
class Test {
interface A {
<K> void foo();
}
{
A a = new <caret>A() {
@Override
public <K> void foo() {
}
};
}
}