FIR IDE: add APIs about FunctionClassKind

This commit is contained in:
Jinseong Jeon
2021-11-03 16:26:12 -07:00
committed by Ilya Kirillov
parent d029e84b96
commit 6d150fb7a5
16 changed files with 202 additions and 1 deletions
@@ -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>)
}