d3fc22fc6a
See KT-46658
22 lines
326 B
Kotlin
Vendored
22 lines
326 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: ANY
|
|
package test
|
|
|
|
class C
|
|
|
|
var C?.p: Int
|
|
get() = 42
|
|
set(value) {}
|
|
|
|
operator fun Int?.inc(): Int? = this?.inc()
|
|
|
|
operator fun Int?.get(index: Int): Int = 42
|
|
operator fun Int?.set(index: Int, value: Int) {}
|
|
|
|
fun testProperty(nc: C?) {
|
|
nc?.p++
|
|
}
|
|
|
|
fun testArrayAccess(nc: C?) {
|
|
nc?.p[0]++
|
|
}
|