AST: Refine recursive property checks on type alias types

This commit is contained in:
Slava Pestov
2019-09-11 17:25:55 -04:00
parent 6a9b566517
commit b1ffa19c7b
6 changed files with 39 additions and 28 deletions

View File

@@ -622,7 +622,7 @@ static void checkNestedTypeConstraints(ConstraintSystem &cs, Type type,
Type ConstraintSystem::openUnboundGenericType(
Type type, ConstraintLocatorBuilder locator) {
assert(!type->hasTypeParameter());
assert(!type->getCanonicalType()->hasTypeParameter());
checkNestedTypeConstraints(*this, type, locator);