Files
kotlin-fork/compiler/testData/codegen/boxInline/smap/inlineOnly/noSmapWithProperty.kt
T
pyos d17a18f96d JVM: do not write trivial SMAPs to classes outside inline funs
where trivial == those that map the file to itself.
2020-05-25 20:03:56 +02:00

21 lines
274 B
Kotlin
Vendored

// FILE: 1.kt
// WITH_RUNTIME
package test
inline fun stub() {
}
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.InlineOnly
inline val prop: String
get() = "OK"
// FILE: 2.kt
import test.*
fun box(): String {
return prop
}
// FILE: 2.smap