method return type fix: when changing class params take into account super substitutor (IDEA-98145)

This commit is contained in:
anna
2012-12-28 18:33:12 +01:00
parent f69ec38d31
commit 4f7a6d0de0
3 changed files with 24 additions and 2 deletions
@@ -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;
}
}
@@ -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;
}
}