We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a28293 + f397f2b commit f500823Copy full SHA for f500823
lib/ClangImporter/ImportType.cpp
@@ -2302,6 +2302,8 @@ ImportedType ClangImporter::Implementation::importMethodParamsAndReturnType(
2302
if (kind == SpecialMethodKind::NSDictionarySubscriptGetter &&
2303
paramTy->isObjCIdType()) {
2304
swiftParamTy = SwiftContext.getNSCopyingType();
2305
+ if (!swiftParamTy)
2306
+ return {Type(), false};
2307
if (optionalityOfParam != OTK_None)
2308
swiftParamTy = OptionalType::get(swiftParamTy);
2309
0 commit comments