Files
kotlin/compiler/testData/codegen/notNullAssertions/javaMultipleSubstitutions.java
2013-02-05 16:26:56 +04:00

19 lines
289 B
Java

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; }
}