mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
[java] correct receiver parameter type check (IDEA-175906)
This commit is contained in:
@@ -49,4 +49,10 @@ class C {
|
||||
B(C <error descr="The receiver name does not match the enclosing class type">B.this</error>, long p) { }
|
||||
B(C <error descr="The receiver name does not match the enclosing class type">this</error>, float p) { }
|
||||
}
|
||||
}
|
||||
|
||||
static class CI<T> {
|
||||
void m1(CI<T> this) { }
|
||||
<T> void m2(<error descr="The receiver type does not match the enclosing class type">CI<T></error> this) { }
|
||||
void m3(<error descr="The receiver type does not match the enclosing class type">CI<String></error> this) { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user