02180e8685
^KT-57777 Fixed ^KT-57818 Fixed
24 lines
354 B
Kotlin
Vendored
24 lines
354 B
Kotlin
Vendored
// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR
|
|
// ^ KT-57433
|
|
|
|
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]++
|
|
}
|