Minor: add test to call callable references from Java

This commit is contained in:
Ilmir Usmanov
2018-07-04 15:38:09 +03:00
parent 4e8cc53962
commit 4ec82cad90
11 changed files with 111 additions and 29 deletions
@@ -1,11 +1,11 @@
// !CHECK_TYPE
// !LANGUAGE: +Coroutines
// SKIP_TXT
// !CHECK_TYPE
import kotlin.reflect.KSuspendFunction0
suspend fun foo() {}
fun test() {
::foo checkType { _<KSuspendFunction0>() }
::foo checkType { _<KSuspendFunction0<Unit>>() }
}