[java] fixes receiver highlighting in local classes (IDEA-158752)

This commit is contained in:
Roman Shevchenko
2016-07-20 16:29:56 +02:00
parent d700be3620
commit f2626b9024
3 changed files with 16 additions and 5 deletions

View File

@@ -29,6 +29,12 @@ class C {
void m4a(C C.this) { }
void m4b(C <error descr="The receiver name does not match the enclosing class type">C.X.this</error>) { }
void m5() {
class L {
L(C C.this) { }
}
}
static void sm1(@TA Object <error descr="The receiver cannot be used in a static context">this</error>) { }
C(C <error descr="The receiver cannot be used in a static context">this</error>) { }