[ObjCExport] Support mapping of ObjCObject types to id
^KT-65167
This commit is contained in:
committed by
Space Team
parent
3cd20bd7b0
commit
2bf7bbb6c1
+14
@@ -457,6 +457,20 @@ class ObjCExportTypeTranslationTest(
|
||||
assertEquals("id -> void", header.renderTypesOfSymbol("foo"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `test - ObjCObject types`() {
|
||||
val header = header(
|
||||
"""
|
||||
class A: kotlinx.cinterop.ObjCObject
|
||||
val foo : A get() = A
|
||||
val bar: kotlinx.cinterop.ObjCObject
|
||||
""".trimIndent()
|
||||
)
|
||||
|
||||
assertEquals("id", header.renderTypesOfSymbol("foo"))
|
||||
assertEquals("id", header.renderTypesOfSymbol("bar"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `test - unresolved error type`() {
|
||||
val header = header(
|
||||
|
||||
Reference in New Issue
Block a user