[FIR] Support type aliases in double colon expression resolver

This commit is contained in:
Mikhail Glukhikh
2020-01-22 12:48:02 +03:00
parent 84c8697720
commit e39df5bb91
4 changed files with 22 additions and 17 deletions
@@ -11,5 +11,5 @@ inline fun <T, R> Iterable<T>.myMap(transform: (T) -> R): List<R> {
}
fun usesGlobal(p: List<Global>) {
p.<!INAPPLICABLE_CANDIDATE!>myMap<!>(Global::toUpperCase)
p.myMap(Global::toUpperCase)
}
@@ -4,4 +4,4 @@ class C {
typealias CA = C
val cf = <!UNRESOLVED_REFERENCE!>CA::foo<!>
val cf = CA::foo
@@ -50,7 +50,7 @@ fun foo(
test.ClassAlias::Nested
test.ClassSample::func
<!UNRESOLVED_REFERENCE!>test.ClassAlias::func<!>
test.ClassAlias::func
test.ClassSample.Nested::func
test.ClassAlias.Nested::func
@@ -68,7 +68,7 @@ fun foo(
test.EnumAlias::Nested
test.EnumSample::func
<!UNRESOLVED_REFERENCE!>test.EnumAlias::func<!>
test.EnumAlias::func
test.EnumSample.Nested::func
test.EnumAlias.Nested::func