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:
@@ -19,3 +19,5 @@ fun box(): String {
|
||||
}
|
||||
|
||||
// FILE: 2.smap
|
||||
// See KT-23064 for the problem, InlineOnlySmapSkipper for an explanation, and
|
||||
// `stdlibInlineOnlyOneLine.kt` for the case where something should actually happen.
|
||||
|
||||
+14
@@ -14,3 +14,17 @@ fun box(): String {
|
||||
}
|
||||
|
||||
// FILE: 2.smap
|
||||
// See KT-23064 for the problem and InlineOnlySmapSkipper for an explanation.
|
||||
SMAP
|
||||
2.kt
|
||||
Kotlin
|
||||
*S Kotlin
|
||||
*F
|
||||
+ 1 2.kt
|
||||
_2Kt
|
||||
+ 2 fake.kt
|
||||
kotlin/jvm/internal/FakeKt
|
||||
*L
|
||||
1#1,9:1
|
||||
65100#2:10
|
||||
*E
|
||||
|
||||
@@ -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