Implement callSuspend and callSuspendBy functions as KCallable's
extension methods. Also make isSuspend a member of KCallable. #KT-21972: Fixed
This commit is contained in:
committed by
Ilya Gorbunov
parent
66315cee45
commit
e93683621a
@@ -9,6 +9,7 @@
|
||||
|
||||
import kotlin.test.assertTrue
|
||||
import kotlin.test.assertFalse
|
||||
import kotlin.reflect.full.isSuspend
|
||||
|
||||
inline fun inline() {}
|
||||
class External { external fun external() }
|
||||
@@ -60,6 +61,7 @@ fun box(): String {
|
||||
assertFalse(::inlineProperty.getter.isExternal)
|
||||
assertTrue(::inlineProperty.getter.isInline)
|
||||
assertTrue(::inlineProperty.setter.isInline)
|
||||
assertFalse(::inlineProperty.isSuspend)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user