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
67 lines
2.3 KiB
Kotlin
Vendored
67 lines
2.3 KiB
Kotlin
Vendored
// CHECK:
|
|
// Mangled name: A
|
|
// Public signature: /A|null[0]
|
|
class A {
|
|
// CHECK:
|
|
// Mangled name: A{}a
|
|
// Public signature: /A.a|-1200697420457237799[0]
|
|
val a: Any?
|
|
// CHECK JVM_IR:
|
|
// Mangled name: A#<get-a>(){}kotlin.Any?
|
|
// Public signature: /A.a.<get-a>|-5253003527138676623[0]
|
|
get
|
|
|
|
// CHECK:
|
|
// Mangled name: A#<init>(kotlin.Any?){}
|
|
// Public signature: /A.<init>|-8205545948568413246[0]
|
|
constructor(a: Any?) /* primary */
|
|
|
|
}
|
|
|
|
// 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: Context#c(){}kotlin.Int
|
|
// Public signature: /Context.c|-7090409735962961857[0]
|
|
fun c(): Int
|
|
|
|
}
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #box(){}kotlin.String
|
|
// Public signature: /box|-9347091776561469[0]
|
|
fun box(): String
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #testInline!Context(){}kotlin.Int
|
|
// Public signature: /testInline|2700554304824268037[0]
|
|
inline fun testInline($context_receiver_0: Context): Int
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #testInlineWithArg!Context(kotlin.Int){}kotlin.Int
|
|
// Public signature: /testInlineWithArg|9204994988875814257[0]
|
|
inline fun testInlineWithArg($context_receiver_0: Context, i: Int): Int
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #testInlineWithExtensionAndArg!Context@kotlin.Int(kotlin.Int){}kotlin.Int
|
|
// Public signature: /testInlineWithExtensionAndArg|-7753885706218316674[0]
|
|
inline fun Int.testInlineWithExtensionAndArg($context_receiver_0: Context, i: Int): Int
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #testInlineWithExtensionAndMultipleArgs!Context@kotlin.Int(kotlin.Int;kotlin.Int){}kotlin.Int
|
|
// Public signature: /testInlineWithExtensionAndMultipleArgs|6839067967550411636[0]
|
|
inline fun Int.testInlineWithExtensionAndMultipleArgs($context_receiver_0: Context, i1: Int, i2: Int): Int
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #testInlineWithExtensionAndMultipleContextsAndArgs!Context!A@kotlin.Int(kotlin.Int;kotlin.Int){}kotlin.Int
|
|
// Public signature: /testInlineWithExtensionAndMultipleContextsAndArgs|4315160499148454711[0]
|
|
inline fun Int.testInlineWithExtensionAndMultipleContextsAndArgs($context_receiver_0: Context, $context_receiver_1: A, i1: Int, i2: Int): Int
|
|
|