mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
[java highlighting] skip anonymous class context for its expression list (IDEA-272378)
GitOrigin-RevId: 5d8e034a4c550aed057ad860bdbaf1645118e5b3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9746172003
commit
4b7f896333
@@ -0,0 +1,32 @@
|
||||
class Main implements I {
|
||||
|
||||
public Main(int i) { }
|
||||
|
||||
{
|
||||
new Main(I.super.m()) {};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
interface I {
|
||||
default int m(){
|
||||
return 42;
|
||||
}
|
||||
}
|
||||
|
||||
class Main1 extends I1 {
|
||||
|
||||
public Main1(int i) {
|
||||
}
|
||||
|
||||
{
|
||||
new Main1(<error descr="'I1' is not an enclosing class">I1.super</error>.m()) {};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
abstract class I1 {
|
||||
public int m(){
|
||||
return 42;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user