[FIR] Transform qualified access / callable refs type arguments properly
This commit is contained in:
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user