// COMPILATION_ERRORS

// VAL
class A(
        val
        val x: Int,
        val
        private val z: Int,
        val
)

val
fun foo() {}

class B {
    val
    fun foo() {}

    fun bar() {
        val
        fun foo() {}
    }
}

// VAR
class C(
        var
        val x: Int,
        var
        private val z: Int,
        var
)

var
fun baz() {}

class D {
    var
    fun foo() {}

    fun bar() {
        var
        fun foo() {}
    }
}
