mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
enclosing instance check: don't check the inheritance for the class with extends/implements itself
This commit is contained in:
+15
-1
@@ -2,4 +2,18 @@ class Outer {
|
||||
class Inner extends Outer {}
|
||||
}
|
||||
|
||||
class Impl extends <error descr="No enclosing instance of type 'Outer' is in scope">Outer.Inner</error> {}
|
||||
class Impl extends <error descr="No enclosing instance of type 'Outer' is in scope">Outer.Inner</error> {}
|
||||
|
||||
class Impl1 {
|
||||
class InnerImpl extends <error descr="No enclosing instance of type 'Outer' is in scope">Outer.Inner</error> {}
|
||||
}
|
||||
|
||||
class Impl2 extends Outer {
|
||||
{
|
||||
class <warning descr="Local class 'L' is never used">L</warning> extends Outer.Inner {}
|
||||
}
|
||||
|
||||
class In extends Outer.Inner {}
|
||||
|
||||
static class In1 extends <error descr="No enclosing instance of type 'Outer' is in scope">Outer.Inner</error> {}
|
||||
}
|
||||
Reference in New Issue
Block a user