[FIR] Transform qualified access / callable refs type arguments properly

This commit is contained in:
Mikhail Glukhikh
2020-01-24 10:43:31 +03:00
parent 483ce8bf04
commit 7721eaab23
7 changed files with 36 additions and 20 deletions
@@ -9,5 +9,5 @@ class A<T>(val t: T) {
fun bar() {
val x = A<String>::foo
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><KFunction1<A<String>, String>>(x)
checkSubtype<KFunction1<A<String>, String>>(x)
}
@@ -8,8 +8,8 @@ class A<T>(val t: T) {
fun bar() {
val x = A<String>::foo
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><KProperty1<A<String>, String>>(x)
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><KProperty1<A<String>, Any?>>(x)
checkSubtype<KProperty1<A<String>, String>>(x)
checkSubtype<KProperty1<A<String>, Any?>>(x)
val y = A<*>::foo
checkSubtype<KProperty1<A<*>, Any?>>(y)