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
30 lines
759 B
Kotlin
Vendored
30 lines
759 B
Kotlin
Vendored
// CHECK:
|
|
// Mangled name: Context
|
|
// Public signature: /Context|null[0]
|
|
class Context {
|
|
// CHECK:
|
|
// Mangled name: Context#<init>(){}
|
|
// Public signature: /Context.<init>|-5645683436151566731[0]
|
|
constructor() /* primary */
|
|
|
|
}
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #f!Context(){}kotlin.String
|
|
// Public signature: /f|-5175802051654911360[0]
|
|
fun f($context_receiver_0: Context): String
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #f(){}kotlin.Any
|
|
// Public signature: /f|-2324325393552926316[0]
|
|
fun f(): Any
|
|
|
|
// CHECK:
|
|
// Mangled name: #test(){}
|
|
// Public signature: /test|6620506149988718649[0]
|
|
fun test(): Unit
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #test(){}#<anonymous>#static@Context(){}kotlin.Int
|
|
local fun Context.<anonymous>(): Int
|
|
|