JVM: map synthetic line numbers through the SMAP

This is necessary so that IDEA does not ignore the line number.
This commit is contained in:
pyos
2020-04-24 11:47:13 +02:00
committed by max-kammerer
parent d17a18f96d
commit 25e1fb8502
10 changed files with 36 additions and 56 deletions
@@ -1,15 +0,0 @@
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.InlineOnly
inline fun <T, R> T.myLet(block: (T) -> R) = block(this)
fun box(): String {
val k = "".myLet {
it + "K"
}
return "O".myLet(fun (it: String): String {
return it + k
})
}
// See KT-23064 for the problem and InlineOnlySmapSkipper for an explanation.
// 0 LINENUMBER 65100
@@ -1,11 +0,0 @@
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.InlineOnly
inline fun <T, R> T.myLet(block: (T) -> R) = block(this)
fun box(): String {
val k = "".myLet { it + "K" }
return "O".myLet(fun (it: String): String { return it + k })
}
// See KT-23064 for the problem and InlineOnlySmapSkipper for an explanation.
// 2 LINENUMBER 65100