Files
kotlin-fork/compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt
T
pyos 433e0e4740 JVM_IR: remember facade fqnames of imported classes
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.
2019-11-11 13:31:57 +01:00

22 lines
296 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// FILE: A.kt
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@file:JvmPackageName("bar")
@file:JvmName("Baz")
package foo
fun f() = "OK"
var v: Int = 1
// FILE: B.kt
import foo.*
fun box(): String {
v = 2
if (v != 2) return "Fail"
return f()
}