433e0e4740
Necessary to support importing file classes annotated @JvmPackageName, since the actual package fragment they are a part of has the name from the `package` declaration.
18 lines
249 B
Kotlin
Vendored
18 lines
249 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// FILE: A.kt
|
|
|
|
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
|
@file:JvmPackageName("bar")
|
|
|
|
fun f() = "OK"
|
|
|
|
var v: Int = 1
|
|
|
|
// FILE: B.kt
|
|
|
|
fun box(): String {
|
|
v = 2
|
|
if (v != 2) return "Fail"
|
|
return f()
|
|
}
|