// RUN_PIPELINE_TILL: FRONTEND
// FIR_IDENTICAL
// http://youtrack.jetbrains.net/issue/KT-20

class A() {
    val x = 1

    companion object {
        val y = <!UNRESOLVED_REFERENCE!>x<!>
    }
}

/* GENERATED_FIR_TAGS: classDeclaration, companionObject, integerLiteral, objectDeclaration, primaryConstructor,
propertyDeclaration */
