// KT-12044 Assertion "Rewrite at slice LEXICAL_SCOPE" for 'if' with property references fun box(): String { data class Pair(val first: F, val second: S) val (x, y) = Pair(1, if (1 == 1) Pair::first else Pair::second) return y.get(Pair("OK", "Fail")) }