Skip to content

Commit da49310

Browse files
committed
Sema: Fix findMissingGenericRequirementForSolutionFix() to set SubstFlags::PreservePackExpansionLevel
1 parent b8d0ba9 commit da49310

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Sema/TypeCheckProtocol.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,8 @@ findMissingGenericRequirementForSolutionFix(
10471047

10481048
return env->mapTypeIntoContext(gp);
10491049
},
1050-
LookUpConformanceInModule());
1050+
LookUpConformanceInModule(),
1051+
SubstFlags::PreservePackExpansionLevel);
10511052
};
10521053

10531054
type = getTypeInConformanceContext(type);

0 commit comments

Comments
 (0)