mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Fix assertions generation for substituted members
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user