AST: Generalize TypeMatcher::alwaysMismatchGenericParams() to alwaysMismatchTypeParameters()

This commit is contained in:
Slava Pestov
2021-08-04 00:11:42 -04:00
parent f39a0a888f
commit 9eb87df3d7
2 changed files with 16 additions and 4 deletions

View File

@@ -387,7 +387,7 @@ static bool unifyConcreteTypes(
rhsSubstitutions(rhsSubstitutions),
ctx(ctx), inducedRules(inducedRules), debug(debug) {}
bool alwaysMismatchGenericParams() const { return true; }
bool alwaysMismatchTypeParameters() const { return true; }
bool mismatch(TypeBase *firstType, TypeBase *secondType,
Type sugaredFirstType) {