Files
kotlin-fork/idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepInto/inlineOnly.kt
T
Yan Zhulanow 472ec72eb9 Refactor debugger tests
1. Move tests to their own module
2. Avoid sharing the 'tinyApp' project between tests
3. Clean up option directive handling
2019-10-08 19:13:56 +09: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: 10