Analysis API: fix PsiType creation for type parameter type with flexible upper bound

This commit is contained in:
Ilya Kirillov
2021-09-21 16:34:21 +02:00
parent 03c352c11e
commit 0c7728f64a
6 changed files with 95 additions and 0 deletions
@@ -0,0 +1,21 @@
// FILE: kotlin.kt
fun bar() {
val xx = JavaClass::<expr>foo</expr>
}
// FILE: JavaClass.java
import org.jetbrains.annotations.NotNull;
public class JavaClass {
@NotNull
public static <T extends B> T foo(@NotNull T x) {
return x;
}
}
// FILE: B.java
public class B {
}
@@ -0,0 +1,2 @@
KtType: T!!
PsiType: PsiType:T