anonymous type methods: remove too much intelligence (IDEA-130498)

This commit is contained in:
Anna Kozlova
2014-09-30 11:02:23 +02:00
parent 7870b304d1
commit 75f1f14e8c
3 changed files with 19 additions and 1 deletions
@@ -0,0 +1,9 @@
class Example {
public static void main(String[] args) {
final Runnable r = new Runnable() {
public void run() {}
public void m2() {}
};
r.<error descr="Cannot resolve method 'm2()'">m2</error>();
}
}