Files
kotlin-fork/compiler/testData/ir/irText/expressions/implicitNotNullInDestructuringAssignment.fir.kt.txt
T
2020-12-15 11:52:49 +03:00

14 lines
237 B
Plaintext
Vendored

operator fun J?.component1(): Int {
return 1
}
private operator fun J.component2(): Int {
return 2
}
fun test() {
val <destruct>: J? = j()
val a: Int = <destruct>.component1()
val b: Int = <destruct> /*!! J */.component2()
}