IDEA: add a couple "navigate to inline function call site" tests

This commit is contained in:
pyos
2020-03-31 12:22:31 +02:00
committed by max-kammerer
parent 9d7db101e6
commit 23ea2446e0
5 changed files with 49 additions and 1 deletions
@@ -0,0 +1,11 @@
fun box() {
foo()
}
inline fun foo() {
null!!
}
// NAVIGATE_TO_CALL_SITE
// FILE: inlineFunCallSite.kt
// LINE: 2
@@ -0,0 +1,17 @@
fun box() {
bar {
foo()
}
}
inline fun foo() {
null!!
}
inline fun bar(x: () -> Unit) {
x()
}
// NAVIGATE_TO_CALL_SITE
// FILE: inlineFunCallSiteInInlineLambda.kt
// LINE: 3