Add workaround for #3053

This commit is contained in:
Svyatoslav Scherbina
2019-06-07 17:22:48 +03:00
committed by SvyatoslavScherbina
parent 83aa459357
commit b1951dbd6b
@@ -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 {