[FIR, IR] Fix name mangling for functions with context receivers
- 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
This commit is contained in:
committed by
Space Team
parent
5700212119
commit
1a29b9efff
+2
-4
@@ -1,12 +1,10 @@
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name computed from Ir: #foo(kotlin.Int){}kotlin.Int
|
||||
// Mangled name computed from Descriptor: #foo!kotlin.Int(){}kotlin.Int
|
||||
// Mangled name: #foo!kotlin.Int(){}kotlin.Int
|
||||
// Public signature: /foo|-298514072419997277[0]
|
||||
fun foo($context_receiver_0: Int): Int
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name computed from Ir: #foo(kotlin.Int;kotlin.String){}kotlin.Int
|
||||
// Mangled name computed from Descriptor: #foo!kotlin.Int!kotlin.String(){}kotlin.Int
|
||||
// Mangled name: #foo!kotlin.Int!kotlin.String(){}kotlin.Int
|
||||
// Public signature: /foo|7076979931255393427[0]
|
||||
fun foo($context_receiver_0: Int, $context_receiver_1: String): Int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user