Fix assertions generation for substituted members

This commit is contained in:
Alexander Udalov
2013-02-04 22:40:54 +04:00
parent 4fa3909eaf
commit 8eb6047972
5 changed files with 69 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
import org.jetbrains.annotations.NotNull;
class A<T, U> {
@NotNull
T foo() { return null; }
}
class B<T> extends A<T, Integer> {
@Override
@NotNull
T foo() { return null; }
}
class C extends B<String> {
@Override
@NotNull
String foo() { return null; }
}