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.
hasError()
1 parent 92d81f3 commit 40167fbCopy full SHA for 40167fb
lib/AST/ASTVerifier.cpp
@@ -2645,7 +2645,7 @@ class Verifier : public ASTWalker {
2645
}
2646
2647
// Catch cases where there's a missing generic environment.
2648
- if (var->getTypeInContext()->is<ErrorType>()) {
+ if (var->getTypeInContext()->hasError()) {
2649
Out << "VarDecl is missing a Generic Environment: ";
2650
var->getInterfaceType().print(Out);
2651
Out << "\n";
0 commit comments