f625444be2
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.
30 lines
503 B
Kotlin
Vendored
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 |