[FIR2IR] Set facade class for backing field properly #KT-42384 Fixed

This commit is contained in:
Mikhail Glukhikh
2020-10-01 16:25:42 +03:00
parent ad7ad98738
commit 76cdf97b6d
7 changed files with 115 additions and 1 deletions
@@ -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"