Files
kotlin-fork/native/native.tests/testData/compilerOutput/ObjCExportDiagnostics/lib1.kt
T
Svyatoslav Scherbina 8d20d5b16c 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
2023-11-14 19:24:43 +00:00

38 lines
576 B
Kotlin
Vendored

@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) {}