JVM: do not write trivial SMAPs to classes outside inline funs
where trivial == those that map the file to itself.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// FILE: 1.kt
|
||||
package test
|
||||
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.internal.InlineOnly
|
||||
inline fun <T, R> T.myLet(block: (T) -> R) = block(this)
|
||||
|
||||
// FILE: 2.kt
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
// should not have any line numbers
|
||||
val k = "".myLet {
|
||||
it + "K"
|
||||
}
|
||||
return "O".myLet(fun (it: String): String {
|
||||
return it + k
|
||||
})
|
||||
}
|
||||
|
||||
// FILE: 2.smap
|
||||
Reference in New Issue
Block a user