mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Refine recursive property checks on type alias types
This commit is contained in:
@@ -4823,7 +4823,9 @@ performMemberLookup(ConstraintKind constraintKind, DeclName memberName,
|
||||
// to access the type with a protocol metatype base.
|
||||
} else if (instanceTy->isExistentialType() &&
|
||||
isa<TypeAliasDecl>(decl) &&
|
||||
!cast<TypeAliasDecl>(decl)->getInterfaceType()->hasTypeParameter()) {
|
||||
!cast<TypeAliasDecl>(decl)
|
||||
->getUnderlyingType()->getCanonicalType()
|
||||
->hasTypeParameter()) {
|
||||
|
||||
/* We're OK */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user