AA FIR: use fully expanded type when computing optimal type mapping mode

^KT-61460 Fixed
This commit is contained in:
Jinseong Jeon
2023-08-25 11:47:04 -07:00
committed by teamcity
parent 1868b29cc9
commit 4cdc22c9cc
3 changed files with 24 additions and 4 deletions
@@ -4,6 +4,16 @@ public abstract interface A /* A*/ {
public abstract interface B /* B*/<T, R> {
}
public final class Foo /* Foo*/ {
@org.jetbrains.annotations.Nullable()
private final kotlin.jvm.functions.Function0<java.lang.Boolean> p;
@org.jetbrains.annotations.Nullable()
public final kotlin.jvm.functions.Function0<java.lang.Boolean> getP();// getP()
public Foo(@org.jetbrains.annotations.Nullable() kotlin.jvm.functions.Function0<java.lang.Boolean>);// .ctor(kotlin.jvm.functions.Function0<java.lang.Boolean>)
}
public abstract interface Test /* Test*/ {
@org.jetbrains.annotations.NotNull()
public abstract A foo();// foo()
@@ -6,6 +6,8 @@ typealias OtherA = A
typealias OtherOtherA = OtherA
typealias OtherB<X, Y> = B<Y, X>
typealias TA = () -> Boolean
interface Test {
fun foo(): A
fun fooAliased(): OtherA
@@ -13,3 +15,7 @@ interface Test {
fun bar(): B<A, B<A, String>>
fun barAliased(): OtherB<OtherB<String, OtherA>, OtherOtherA>
}
class Foo(
val p: TA?,
)