Files
kotlin-fork/compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.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

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()
}