Files
kotlin-fork/compiler/testData/ir/irText/expressions/implicitNotNullInDestructuringAssignment.fir.kt.txt
T
Dmitriy Novozhilov 65ea4e184a [FIR] Fix enhancement of FlexibleNullability and EnhancedNullability
- Add utilities to add new attribute to ConeAttributes
- Get rid of FlexibleNullability attribute (it can be easily inferred
    for any flexible type at any moment)
- Fix determining of EnhancedNullability attribute
2021-03-11 13:10:04 +03:00

14 lines
279 B
Plaintext
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> /*!! @FlexibleNullability J */.component2()
}