mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
28 lines
472 B
Kotlin
Vendored
28 lines
472 B
Kotlin
Vendored
// FILE: otherFile.kt
|
|
|
|
@file:[JvmName("Util") JvmMultifileClass]
|
|
package test
|
|
|
|
public fun publicInOtherFile() {}
|
|
|
|
// FILE: thisFile.kt
|
|
|
|
@file:[JvmName("Util") JvmMultifileClass]
|
|
package test
|
|
|
|
inline fun foo(body: () -> Unit) {
|
|
publicInThisFile()
|
|
publicInOtherFile()
|
|
body()
|
|
}
|
|
|
|
public fun publicInThisFile() {}
|
|
|
|
fun bar() {
|
|
foo {}
|
|
}
|
|
|
|
// @test/Util__ThisFileKt.class:
|
|
// 2 INVOKESTATIC test/Util.publicInThisFile
|
|
// 2 INVOKESTATIC test/Util.publicInOtherFile
|