15 lines
259 B
Kotlin
Vendored
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()
|
|
}
|
|
|