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:
@@ -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
|
||||
-11
@@ -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
|
||||
Reference in New Issue
Block a user