[AA LC] Expand aliases of type arguments during conversion to KtType

^KT-55781
This commit is contained in:
Dmitriy Novozhilov
2022-10-03 17:01:25 +03:00
committed by Space Team
parent 36ae901b19
commit ed867af01d
10 changed files with 80 additions and 2 deletions
@@ -0,0 +1,13 @@
public abstract interface Test /* Test*/ {
@org.jetbrains.annotations.NotNull()
public abstract A foo();// foo()
@org.jetbrains.annotations.NotNull()
public abstract A fooAliased();// fooAliased()
@org.jetbrains.annotations.NotNull()
public abstract B<A, B<A, java.lang.String>> bar();// bar()
@org.jetbrains.annotations.NotNull()
public abstract B<A, B<A, java.lang.String>> barAliased();// barAliased()
}
@@ -0,0 +1,15 @@
// Test
interface A
interface B<T, R>
typealias OtherA = A
typealias OtherOtherA = OtherA
typealias OtherB<X, Y> = B<Y, X>
interface Test {
fun foo(): A
fun fooAliased(): OtherA
fun bar(): B<A, B<A, String>>
fun barAliased(): OtherB<OtherB<String, OtherA>, OtherOtherA>
}