mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
no enclosing instance error for top level classes (IDEA-169088)
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
class Outer {
|
||||
class Inner extends Outer {}
|
||||
}
|
||||
|
||||
class Impl extends <error descr="No enclosing instance of type 'Outer' is in scope">Outer.Inner</error> {}
|
||||
@@ -630,4 +630,8 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
public void testUncheckedWarningWhenCastingFromCapturedWildcard() throws Exception {
|
||||
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_8, true);
|
||||
}
|
||||
|
||||
public void testEnclosingRefInTopLevelClassExtendingInnerWhichExtendsItsOuter() throws Exception {
|
||||
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_8, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user