Fix assertions generation for substituted members
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import java.util.ArrayList
|
||||
|
||||
fun foo() {
|
||||
val a = ArrayList<String>()
|
||||
a.get(0)
|
||||
}
|
||||
|
||||
fun bar(a: ArrayList<String>) {
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun bar(a: A<String, Int>, b: B<String>, c: C) {
|
||||
val sa: String = a.foo()
|
||||
val sb: String = b.foo()
|
||||
val sc: String = c.foo()
|
||||
}
|
||||
Reference in New Issue
Block a user