mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
IDEA-115883 Add auto-fix for compiler error "Unqualified super reference is not allowed in extension method"
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// "Qualify super expression with 'Super'" "true"
|
||||
interface Super
|
||||
{
|
||||
default void method()
|
||||
{
|
||||
System.out.println("Super.method()");
|
||||
}
|
||||
}
|
||||
|
||||
interface Sub extends Super {
|
||||
default void foo() {
|
||||
Super.super.method();
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Qualify super expression with 'Super'" "true"
|
||||
interface Super
|
||||
{
|
||||
default void method()
|
||||
{
|
||||
System.out.println("Super.method()");
|
||||
}
|
||||
}
|
||||
|
||||
interface Sub extends Super {
|
||||
default void foo() {
|
||||
<caret>super.method();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user