mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-06 15:53:19 +00:00
18 lines
483 B
Kotlin
Vendored
18 lines
483 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
@file:[JvmName("Foo") JvmMultifileClass]
|
|
package test
|
|
|
|
fun foo() {
|
|
inlineOnly<String>()
|
|
inlineOnlyAnnotated()
|
|
}
|
|
|
|
// 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
|
|
public inline fun <reified T> inlineOnly() {}
|
|
|
|
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
|
@kotlin.internal.InlineOnly
|
|
inline fun inlineOnlyAnnotated() { }
|