lambda -> anonym: disable in unexpected context where cast won't help (IDEA-120165)

This commit is contained in:
Anna Kozlova
2014-02-25 10:15:19 +01:00
parent f4e209c47e
commit 1b50ea2eb2
2 changed files with 33 additions and 13 deletions
@@ -0,0 +1,17 @@
// "Replace with lambda" "false"
class Test {
interface I {
}
interface Bar extends I {
int compare(String o1, String o2);
}
{
new Ba<caret>r() {
@Override
public int compare(String o1, String o2) {
return 0;
}
};
}
}