Support nullable callable references in FIR resolve

This commit is contained in:
Mikhail Glukhikh
2020-01-30 19:22:38 +03:00
parent a584589665
commit aeb6f35571
13 changed files with 34 additions and 20 deletions
@@ -6,11 +6,11 @@ fun Foo?.bar() {}
fun test() {
val r1 = Foo ?:: bar
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><(Foo?) -> Unit>(r1)
checkSubtype<(Foo?) -> Unit>(r1)
val r2 = Foo ? :: bar
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><(Foo?) -> Unit>(r2)
checkSubtype<(Foo?) -> Unit>(r2)
val r3 = Foo ? ? :: bar
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><(Foo?) -> Unit>(r3)
checkSubtype<(Foo?) -> Unit>(r3)
}