[FIR2IR] Set facade class for backing field properly #KT-42384 Fixed
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// FILE: A.kt
|
||||
// WITH_RUNTIME
|
||||
|
||||
package first.second
|
||||
|
||||
class FqName(val s: String)
|
||||
|
||||
@JvmField
|
||||
val VOLATILE_ANNOTATION_FQ_NAME = FqName("volatile")
|
||||
|
||||
// FILE: B.kt
|
||||
|
||||
import first.second.VOLATILE_ANNOTATION_FQ_NAME
|
||||
import first.second.FqName
|
||||
|
||||
fun foo() = hasAnnotation(VOLATILE_ANNOTATION_FQ_NAME)
|
||||
|
||||
fun hasAnnotation(name: FqName): Boolean = true
|
||||
|
||||
fun box() = if (foo()) "OK" else "FAIL"
|
||||
Reference in New Issue
Block a user