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 960ef61 + d2ddbc8 commit c12e062Copy full SHA for c12e062
lib/Sema/TypeCheckAttr.cpp
@@ -2068,8 +2068,8 @@ static Type getDynamicComparisonType(ValueDecl *value) {
2068
}
2069
2070
auto interfaceType = value->getInterfaceType();
2071
- if (interfaceType->hasError())
2072
- return interfaceType;
+ if (!interfaceType)
+ return ErrorType::get(value->getASTContext());
2073
2074
return interfaceType->removeArgumentLabels(numArgumentLabels);
2075
0 commit comments