Files
kotlin-fork/compiler/testData/codegen/bytecodeListing/inline/InlineOnlyMultifile.kt
T
Alexander Udalov b257b03152 JVM IR: do not generate JvmName on multifile parts
#KT-36970 Fixed
2020-10-13 16:40:52 +02:00

15 lines
393 B
Kotlin
Vendored

// WITH_RUNTIME
@file:[JvmName("Foo") JvmMultifileClass]
package test
fun foo() {
inlineOnly()
}
// No method should be generated in multifile facade for 'inlineOnly'
// Because 'inlineOnly' is private in file part (because it's inline-only) and can't be delegated from facade
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.InlineOnly
inline fun inlineOnly() { }