Skip to content

Commit fcef528

Browse files
committed
Sema: Stop producing SubstitutedType for typealias member lookup
1 parent 56114ee commit fcef528

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/Sema/TypeCheckType.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -570,13 +570,7 @@ Type TypeChecker::applyUnboundGenericArguments(
570570
type = ArchetypeBuilder::mapTypeOutOfContext(TAD, TAD->getUnderlyingType());
571571
}
572572

573-
type = type.subst(dc->getParentModule(), subs, SubstFlags::UseErrorType);
574-
575-
// FIXME: return a SubstitutedType to preserve the fact that
576-
// we resolved a generic TypeAlias, for availability diagnostics.
577-
// A better fix might be to introduce a BoundGenericAliasType
578-
// which desugars as appropriate.
579-
return SubstitutedType::get(TAD->getAliasType(), type, Context);
573+
return type.subst(dc->getParentModule(), subs, SubstFlags::UseErrorType);
580574
}
581575

582576
// Form the bound generic type.

0 commit comments

Comments
 (0)