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 04709c1 + 9c8f325 commit 1c6d6dfCopy full SHA for 1c6d6df
lib/ClangImporter/ImportType.cpp
@@ -2351,6 +2351,8 @@ ImportedType ClangImporter::Implementation::importMethodParamsAndReturnType(
2351
if (kind == SpecialMethodKind::NSDictionarySubscriptGetter &&
2352
paramTy->isObjCIdType()) {
2353
swiftParamTy = SwiftContext.getNSCopyingType();
2354
+ if (!swiftParamTy)
2355
+ return {Type(), false};
2356
if (optionalityOfParam != OTK_None)
2357
swiftParamTy = OptionalType::get(swiftParamTy);
2358
0 commit comments