FIR: Fix type alias case for callable reference resolution type

This commit is contained in:
Denis.Zharkov
2021-10-26 17:57:14 +03:00
committed by TeamCityServer
parent a29dfb3b48
commit 37b5237e97
6 changed files with 43 additions and 3 deletions
@@ -0,0 +1,16 @@
// FIR_IDENTICAL
// SKIP_TXT
typealias MPair<K> = Pair<K, Int>
typealias TextWithOffset = MPair<String>
fun foo(c: Collection<TextWithOffset>) {
val a1 = c.map(TextWithOffset::first)
a1[0].length
val a2 = c.map(MPair<String>::first)
a2[0].length
val a3 = c.map(Pair<String, Int>::first)
a3[0].length
}