// RUN_PIPELINE_TILL: BACKEND
// FILE: Node.java

public interface Node<R> {
    R result();
}

// FILE: foo.kt

fun foo(): Boolean {
    object : Node<Boolean> {
        private var result = false

        fun bar(): Boolean {
            return !result
        }

        // Cannot see private member of local class / anonymous object
        override fun result() = result
    }

    val some = true
    return !some
}

/* GENERATED_FIR_TAGS: anonymousObjectExpression, functionDeclaration, javaType, localProperty, override,
propertyDeclaration */
