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.
25 lines
364 B
Kotlin
Vendored
25 lines
364 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// FILE: A.kt
|
|
|
|
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
|
@file:JvmPackageName("bar")
|
|
package foo
|
|
|
|
fun f() = "OK"
|
|
|
|
var v: Int = 1
|
|
|
|
inline fun i(block: () -> Unit) = block()
|
|
|
|
// FILE: B.kt
|
|
|
|
import foo.*
|
|
|
|
fun box(): String {
|
|
v = 2
|
|
if (v != 2) return "Fail"
|
|
i { v = 3 }
|
|
if (v != 3) return "Fail"
|
|
return f()
|
|
}
|