blob: 26b726f5012cf21efe2b59a15cf243a83d80aecb [file]
// LANGUAGE: +UnnamedLocalVariables +NameBasedDestructuring +DeprecateNameMismatchInShortDestructuringWithParentheses +EnableNameBasedDestructuringShortForm
var result = "FAIL: call() must be called"
fun call() {
result = "OK"
}
object Structure {
operator fun component1() {
result = "FAIL: component1() must not be called"
}
}
fun box(): String {
val _ = call()
val [_] = Structure
return result
}