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 2140dc2 commit f5e40feCopy full SHA for f5e40fe
lib/Sema/CSSimplify.cpp
@@ -8808,8 +8808,8 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyMemberConstraint(
8808
baseTy->getMetatypeInstanceType()->getAs<ArchetypeType>()) {
8809
if (auto genericTy =
8810
archetype->mapTypeOutOfContext()->getAs<GenericTypeParamType>()) {
8811
- for (auto param :
8812
- archetype->getGenericEnvironment()->getGenericParams()) {
+ for (auto param : DC->getGenericSignatureOfContext()
+ .getGenericParams()) {
8813
// Find a param at the same depth and one index past the type we're
8814
// dealing with
8815
if (param->getDepth() != genericTy->getDepth() ||
0 commit comments