Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.sig.kt.txt
T
Sergej Jaskiewicz 1a29b9efff [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
2023-05-23 08:55:50 +00:00

34 lines
1006 B
Kotlin
Vendored

// CHECK:
// Mangled name: Matrix
// Public signature: /Matrix|null[0]
class Matrix {
// CHECK:
// Mangled name: Matrix#<init>(){}
// Public signature: /Matrix.<init>|-5645683436151566731[0]
constructor() /* primary */
}
// CHECK:
// Mangled name: NumberOperations
// Public signature: /NumberOperations|null[0]
interface NumberOperations {
// CHECK JVM_IR:
// Mangled name: NumberOperations#plus@kotlin.Number(kotlin.Number){}kotlin.Number
// Public signature: /NumberOperations.plus|-6518987633126930952[0]
abstract fun Number.plus(other: Number): Number
}
// CHECK JVM_IR:
// Mangled name: #plus!NumberOperations@Matrix(Matrix){}Matrix
// Public signature: /plus|1303343764214809933[0]
fun Matrix.plus($context_receiver_0: NumberOperations, other: Matrix): Matrix
// CHECK:
// Mangled name: #plusMatrix@NumberOperations(Matrix;Matrix){}
// Public signature: /plusMatrix|-8194087590203252948[0]
fun NumberOperations.plusMatrix(m1: Matrix, m2: Matrix): Unit