Native: support objcExportReportNameCollisions=true binary option

This binary option makes the compiler emit a warning whenever it mangles
a name emitted by ObjCExport.

^KT-63153 Fixed
This commit is contained in:
Svyatoslav Scherbina
2023-11-03 12:49:22 +01:00
committed by Space Team
parent 656b61b945
commit 8d20d5b16c
12 changed files with 144 additions and 13 deletions
@@ -0,0 +1,38 @@
@file:OptIn(kotlin.experimental.ExperimentalObjCName::class)
package pkg.lib1
interface InterfaceClash
class ClassClash
interface InterfaceClash2
class ClassClash2
@ObjCName("InterfaceClash2")
interface InterfaceClashWithObjCName
@ObjCName("ClassClash2")
class ClassClashWithObjCName
class Lib1Kt
enum class E {
ONE,
one,
@ObjCName("one")
TWO,
ENTRIES,
@ObjCName("values") VALUES1;
}
interface I1 {
val prop: Int
fun method()
}
interface I2 {
val prop: String
fun method()
}
fun topLevel(arg: Int) {}
fun topLevel(arg: Long) {}