Files
kotlin-fork/compiler/testData/ir/irText/expressions/implicitNotNullInDestructuringAssignment.fir.kt.txt
T
2021-11-24 16:19:10 +00:00

15 lines
259 B
Kotlin
Vendored

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