Minor: add test to call callable references from Java
This commit is contained in:
+2
-2
@@ -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>>() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user