Files
kotlin-fork/idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/inlineOnly.kt
T
pyos f625444be2 Update debugger test data
Note: neither the new nor the old data is actually correct, as the
debugger needs to stop on line 7 twice (once for the call, once for the
lambda) but ignore the synthetic line number in between.
2020-05-25 20:03:56 +02:00

30 lines
503 B
Kotlin
Vendored

package inlineOnly
fun main(args: Array<String>) {
//Breakpoint!
myPrint("OK")
forEach { print2("123")}
println("OK") //stdlib test
}
fun print2(s: String){
val z = s;
}
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.InlineOnly
inline fun myPrint(s: String) {
val z = s;
}
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.InlineOnly
inline fun forEach(s: () -> Unit) {
for (i in 1..2) {
s()
}
}
// STEP_INTO: 14