Merge pull request #42010 from nkcsgexi/90210674

This commit is contained in:
Xi Ge
2022-03-24 16:13:22 -07:00
committed by GitHub
3 changed files with 14 additions and 2 deletions

View File

@@ -1966,7 +1966,7 @@ static ConstraintSystem::TypeMatchResult matchCallArguments(
locator->getAnchor().isExpr(ExprKind::UnresolvedMemberChainResult)) {
locator =
cs.getConstraintLocator(cast<UnresolvedMemberChainResultExpr>(
locator->getAnchor().get<Expr*>())->getChainBase());
locator->getAnchor().get<Expr*>())->getSubExpr());
}
cs.recordFix(NotCompileTimeConst::create(cs, paramTy, locator));
}