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:
committed by
Space Team
parent
656b61b945
commit
8d20d5b16c
@@ -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) {}
|
||||
Reference in New Issue
Block a user