FIR IDE: add APIs about FunctionClassKind
This commit is contained in:
committed by
Ilya Kirillov
parent
d029e84b96
commit
6d150fb7a5
@@ -0,0 +1,11 @@
|
||||
// WITH_REFLECT
|
||||
|
||||
import kotlin.reflect.KFunction1
|
||||
|
||||
fun <T, R> foo(p: T, mapper : (T) -> R): R {
|
||||
mapper(p)
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
foo(1, x<caret>y as KFunction1<Int, String>)
|
||||
}
|
||||
Reference in New Issue
Block a user