We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56114ee commit fcef528Copy full SHA for fcef528
lib/Sema/TypeCheckType.cpp
@@ -570,13 +570,7 @@ Type TypeChecker::applyUnboundGenericArguments(
570
type = ArchetypeBuilder::mapTypeOutOfContext(TAD, TAD->getUnderlyingType());
571
}
572
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);
+ return type.subst(dc->getParentModule(), subs, SubstFlags::UseErrorType);
580
581
582
// Form the bound generic type.
0 commit comments