Add workaround for #3053
This commit is contained in:
committed by
SvyatoslavScherbina
parent
83aa459357
commit
b1951dbd6b
+5
@@ -783,6 +783,11 @@ internal class ObjCExportTranslatorImpl(
|
||||
return mapObjCObjectReferenceTypeIgnoringNullability(classDescriptor)
|
||||
}
|
||||
|
||||
// Workaround for https://github.com/JetBrains/kotlin-native/issues/3053
|
||||
if (!mapper.shouldBeExposed(classDescriptor)) {
|
||||
return ObjCIdType
|
||||
}
|
||||
|
||||
return if (classDescriptor.isInterface) {
|
||||
ObjCProtocolType(referenceProtocol(classDescriptor).objCName)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user