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.
1 parent b5a8b51 commit addb432Copy full SHA for addb432
lib/Sema/TypeCheckType.cpp
@@ -2705,7 +2705,8 @@ Type TypeResolver::resolveASTFunctionType(
2705
switch (representation) {
2706
case AnyFunctionType::Representation::Block:
2707
case AnyFunctionType::Representation::CFunctionPointer:
2708
- if (!fnTy->isRepresentableIn(ForeignLanguage::ObjectiveC, DC)) {
+ if (!fnTy->hasError() &&
2709
+ !fnTy->isRepresentableIn(ForeignLanguage::ObjectiveC, DC)) {
2710
StringRef strName =
2711
(representation == AnyFunctionType::Representation::Block)
2712
? "block"
0 commit comments