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 10adbdd commit d598c03Copy full SHA for d598c03
lib/AST/ASTVerifier.cpp
@@ -645,7 +645,7 @@ class Verifier : public ASTWalker {
645
if (genericEnv->getKind() == GenericEnvironment::Kind::OpenedElement) {
646
auto contextSubs = genericEnv->getPackElementContextSubstitutions();
647
QuerySubstitutionMap isInContext{contextSubs};
648
- if (isInContext(root->getInterfaceType()->getAs<GenericTypeParamType>()))
+ if (isInContext(root->getInterfaceType()->castTo<GenericTypeParamType>()))
649
return false;
650
}
651
0 commit comments