[FIR] Fix incorrect resolve of callable reference in function signature (^KT-48304 Fixed)

This commit is contained in:
Ivan Kochurkin
2021-08-19 13:11:47 +03:00
committed by Space
parent 5ddf0cc7b2
commit bb27ae2b42
16 changed files with 95 additions and 23 deletions
@@ -0,0 +1,15 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
fun eat(value: Any) {}
fun test(param: String) {
val a = ::<!UNSUPPORTED!>param<!>
val local = "local"
val b = ::<!UNSUPPORTED!>local<!>
val lambda = { -> }
val g = ::<!UNSUPPORTED!>lambda<!>
<!INAPPLICABLE_CANDIDATE!>eat<!>(::<!UNSUPPORTED!>param<!>)
}