1a29b9efff
- Mangled names of property accessors now include context receiver types of the corresponding property when computed from FIR. - Context receivers are now supported when computing mangled names from IR - IrBasedDescriptors now account for context receivers ^KT-57435 Fixed
29 lines
578 B
Kotlin
Vendored
29 lines
578 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !LANGUAGE: +ContextReceivers
|
|
// IGNORE_BACKEND_K1: JS_IR
|
|
// IGNORE_BACKEND_K1: JS_IR_ES6
|
|
|
|
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
|
// ^ KT-57429
|
|
|
|
class A<T>(val a: T)
|
|
class B(val b: Any)
|
|
class C(val c: Any)
|
|
|
|
context(labelAInt@A<Int>, A<String>, labelB@B) fun f() {
|
|
this@labelAInt.a.toFloat()
|
|
this@A.a.length
|
|
this@labelB.b
|
|
}
|
|
|
|
context(labelAInt@A<Int>, A<String>, labelB@B) val C.p: Int
|
|
get() {
|
|
this@labelAInt.a.toFloat()
|
|
this@A.a.length
|
|
this@labelB.b
|
|
this@C.c
|
|
this@p.c
|
|
this.c
|
|
return 1
|
|
}
|