FIR: handle suspend functions in callable reference resolve properly

This commit is contained in:
Mikhail Glukhikh
2020-04-20 09:39:28 +03:00
parent c26adf53dd
commit aada7bfe51
5 changed files with 7 additions and 16 deletions
@@ -1,11 +0,0 @@
// !CHECK_TYPE
// !LANGUAGE: +ReleaseCoroutines
// SKIP_TXT
import kotlin.reflect.KSuspendFunction0
suspend fun foo() {}
fun test() {
::foo checkType { <!INAPPLICABLE_CANDIDATE!>_<!><KSuspendFunction0<Unit>>() }
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !CHECK_TYPE
// !LANGUAGE: +ReleaseCoroutines
// SKIP_TXT