mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
method return type fix: when changing class params take into account super substitutor (IDEA-98145)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Make 'doin' return 'int'" "true"
|
||||
abstract class AsyncTask<A, B, C> {
|
||||
abstract C doin(A... a);
|
||||
}
|
||||
class AAsync extends AsyncTask<String,Integer,Integer> {
|
||||
@Override
|
||||
Integer doin(String... a) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Make 'doin' return 'int'" "true"
|
||||
abstract class AsyncTask<A, B, C> {
|
||||
abstract C doin(A... a);
|
||||
}
|
||||
class AAsync extends AsyncTask<String, Integer, Long> {
|
||||
@Override
|
||||
Long doin(String... a) {
|
||||
return <caret>1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user