[FIR] support flexible types in ConeKotlinType#independentInstance
^KT-60580 Fixed
This commit is contained in:
committed by
Space Team
parent
dc56c5cf9e
commit
8820867341
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user