[FIR] support flexible types in ConeKotlinType#independentInstance

^KT-60580 Fixed
This commit is contained in:
Dmitrii Gridin
2023-07-20 16:16:48 +02:00
committed by Space Team
parent dc56c5cf9e
commit 8820867341
7 changed files with 70 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
// FIR_IDENTICAL
// FILE: usage.kt
@Target(AnnotationTarget.TYPE)
annotation class Anno
data class P<T1, T2>(val t1: T1, val t2: T2)
fun foo(m: Manager<P<Int, @Anno String>>) {
m.action {}
}
// FILE: Manager.java
import org.jetbrains.annotations.NotNull;
public interface Manager<T> {
@NotNull
Manager<T> action(@NotNull Consumer<? super T> handler);
}
// FILE: Consumer.java
@FunctionalInterface
public interface Consumer<T> {
void accept(T t);
}