Use AnonymousFunctionDescriptor for suspend callable references
Also use it for local suspend functions, which allows us to remove hack with dropSuspend. Regenerate tests.
This commit is contained in:
+6
-1
@@ -1,6 +1,11 @@
|
||||
// !LANGUAGE: +Coroutines
|
||||
// SKIP_TXT
|
||||
// !CHECK_TYPE
|
||||
|
||||
import kotlin.reflect.KSuspendFunction0
|
||||
|
||||
suspend fun foo() {}
|
||||
|
||||
val ref = ::foo
|
||||
fun test() {
|
||||
::foo checkType { _<KSuspendFunction0>() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user