6e8283a6fe
The reason #1 for this feature is that we want to test IdSignatures generated for declarations. Currently, there is no (easy) way to ensure that a change in the signature building logic doesn't cause any breaking changes wrt klibs. Now, most IdSignatures include hashed mangled names in them, so even if we catch a regression where the included hash changes, there would be no way of knowing immediately what caused it, unless we'd also have mangled names in the expectations. The reason #2 is to test the manglers themselves. Currently, there are no tests for them. They heavily duplicate each other, this is already causing issues (see KT-57427) that would be very hard to catch without these tests. ^KT-58238 Fixed
33 lines
1.3 KiB
Kotlin
Vendored
33 lines
1.3 KiB
Kotlin
Vendored
// CHECK JVM_IR:
|
|
// Mangled name: #testDD(kotlin.Double?;kotlin.Double?){}kotlin.Boolean
|
|
// Public signature: /testDD|6324676724672008011[0]
|
|
// CHECK JS_IR NATIVE:
|
|
// Mangled name: #testDD(kotlin.Double?;kotlin.Double?){}
|
|
// Public signature: /testDD|6448090919849267088[0]
|
|
fun testDD(x: Double?, y: Double?): Boolean
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #testDF(kotlin.Double?;kotlin.Any?){}kotlin.Boolean
|
|
// Public signature: /testDF|9116951022031676909[0]
|
|
// CHECK JS_IR NATIVE:
|
|
// Mangled name: #testDF(kotlin.Double?;kotlin.Any?){}
|
|
// Public signature: /testDF|8975597351648058215[0]
|
|
fun testDF(x: Double?, y: Any?): Boolean
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #testDI(kotlin.Double?;kotlin.Any?){}kotlin.Boolean
|
|
// Public signature: /testDI|-2518117290397712484[0]
|
|
// CHECK JS_IR NATIVE:
|
|
// Mangled name: #testDI(kotlin.Double?;kotlin.Any?){}
|
|
// Public signature: /testDI|-2492360038280217235[0]
|
|
fun testDI(x: Double?, y: Any?): Boolean
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #testDI2(kotlin.Any?;kotlin.Any?){}kotlin.Boolean
|
|
// Public signature: /testDI2|5408730355929274743[0]
|
|
// CHECK JS_IR NATIVE:
|
|
// Mangled name: #testDI2(kotlin.Any?;kotlin.Any?){}
|
|
// Public signature: /testDI2|-1156893754545330465[0]
|
|
fun testDI2(x: Any?, y: Any?): Boolean
|
|
|