mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-07 08:31:28 +00:00
34 lines
752 B
Kotlin
Vendored
34 lines
752 B
Kotlin
Vendored
// FILE: otherFile.kt
|
|
|
|
@file:[JvmName("Util") JvmMultifileClass]
|
|
package test
|
|
|
|
internal fun internalInOtherFile() {}
|
|
public fun publicInOtherFile() {}
|
|
|
|
// FILE: thisFile.kt
|
|
|
|
@file:[JvmName("Util") JvmMultifileClass]
|
|
package test
|
|
|
|
fun foo() {
|
|
privateInThisFile()
|
|
internalInThisFile()
|
|
publicInThisFile()
|
|
internalInOtherFile()
|
|
publicInOtherFile()
|
|
}
|
|
|
|
private fun privateInThisFile() {}
|
|
|
|
internal fun internalInThisFile() {}
|
|
|
|
public fun publicInThisFile() {}
|
|
|
|
// @test/Util__ThisFileKt.class:
|
|
// 1 INVOKESTATIC test/Util__ThisFileKt.privateInThisFile
|
|
// 1 INVOKESTATIC test/Util.internalInThisFile
|
|
// 1 INVOKESTATIC test/Util.publicInThisFile
|
|
// 1 INVOKESTATIC test/Util.internalInOtherFile
|
|
// 1 INVOKESTATIC test/Util.publicInOtherFile
|