[ObjCExport] Add inner classes translation
KT-66339
This commit is contained in:
committed by
Space Team
parent
5fee662223
commit
f7f779df53
+15
@@ -356,6 +356,21 @@ class ObjCExportHeaderGeneratorTest(private val generator: HeaderGenerator) {
|
||||
doTest(headersTestDataDir.resolve("suspendFunction"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `test - innerClass`() {
|
||||
doTest(headersTestDataDir.resolve("innerClass"))
|
||||
}
|
||||
|
||||
/**
|
||||
* Works except properties sorting with special name [org.jetbrains.kotlin.name.Name.special]
|
||||
* See KT-66510
|
||||
*/
|
||||
@Test
|
||||
@TodoAnalysisApi
|
||||
fun `test - innerClassWithExtensionFunction`() {
|
||||
doTest(headersTestDataDir.resolve("innerClassWithExtensionFunction"))
|
||||
}
|
||||
|
||||
private fun doTest(root: File, configuration: Configuration = Configuration()) {
|
||||
if (!root.isDirectory) fail("Expected ${root.absolutePath} to be directory")
|
||||
val generatedHeaders = generator.generateHeaders(root, configuration).toString()
|
||||
|
||||
Reference in New Issue
Block a user