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.
Type::isBareErrorType
1 parent a83ea3c commit 1c18541Copy full SHA for 1c18541
include/swift/AST/Types.h
@@ -8132,13 +8132,7 @@ inline ASTContext &TypeBase::getASTContext() const {
8132
8133
inline bool TypeBase::isBareErrorType() const {
8134
auto *errTy = dyn_cast<ErrorType>(this);
8135
- if (!errTy)
8136
- return false;
8137
-
8138
- // FIXME: We shouldn't need to check for a recursive bare error type, we can
8139
- // remove this once we flatten them.
8140
- auto originalTy = errTy->getOriginalType();
8141
- return !originalTy || originalTy->isBareErrorType();
+ return errTy && !errTy->getOriginalType();
8142
}
8143
8144
// TODO: This will become redundant once InOutType is removed.
0 commit comments