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:
Ilmir Usmanov
2018-07-03 16:06:41 +03:00
parent eea95441c5
commit 28ad498956
31 changed files with 259 additions and 292 deletions
@@ -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>() }
}