Restore last inline function call site line number on lambda inlining into @InlineOnly function
This commit is contained in:
@@ -2,7 +2,30 @@ package inlineOnly
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
println("OK")
|
||||
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: 9
|
||||
// TRACING_FILTERS_ENABLED: false
|
||||
Reference in New Issue
Block a user