mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Do not generate delegation from multi-file facade to inline-only functions because they are effectively private in bytecode #KT-10858 Fixed
11 lines
321 B
Kotlin
Vendored
11 lines
321 B
Kotlin
Vendored
@file:[JvmName("Foo") JvmMultifileClass]
|
|
package test
|
|
|
|
fun foo() {
|
|
inlineOnly<String>()
|
|
}
|
|
|
|
// 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() {}
|