ConstraintSystem: Move key path type utilities to AST.

This commit is contained in:
Allan Shortlidge
2025-09-24 17:27:37 -07:00
parent 8f7af45115
commit 2467b931a7
10 changed files with 28 additions and 22 deletions

View File

@@ -79,7 +79,7 @@ swift::ide::getSelectedOverloadInfo(const Solution &S,
fnType->getParams()[0].getPlainType()->castTo<BoundGenericType>();
auto *keyPathDecl = keyPathTy->getAnyNominal();
assert(isKnownKeyPathType(keyPathTy) &&
assert(keyPathTy->isKnownKeyPathType() &&
"parameter is supposed to be a keypath");
auto KeyPathDynamicLocator = CS.getConstraintLocator(