forbid anonym -> lambda/meth ref if method is synchronized (IDEA-133947)

This commit is contained in:
Anna Kozlova
2014-12-05 20:19:15 +01:00
parent 849936da07
commit e90b046aa4
3 changed files with 69 additions and 43 deletions

View File

@@ -0,0 +1,14 @@
// "Replace with lambda" "false"
class Test {
interface I {
void m();
}
{
I i = new I<caret>() {
public synchronized void m() {
//do smth
}
}
}
}