mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
provide extends fix for overriding return types (IDEA-161739)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// "Make 'Bar' implement 'java.lang.Runnable'" "true"
|
||||
|
||||
abstract class Foo {
|
||||
abstract Runnable foo();
|
||||
}
|
||||
|
||||
class FooBar extends Foo {
|
||||
@Override
|
||||
Bar foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
static class Bar implements Runnable {
|
||||
public void run() {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
// "Make 'Bar' implement 'java.lang.Runnable'" "true"
|
||||
|
||||
abstract class Foo {
|
||||
abstract Runnable foo();
|
||||
}
|
||||
|
||||
class FooBar extends Foo {
|
||||
@Override
|
||||
B<caret>ar foo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
static class Bar {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user