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 af38d88 commit cd20dbaCopy full SHA for cd20dba
stdlib/public/runtime/ProtocolConformance.cpp
@@ -1875,6 +1875,11 @@ std::optional<TypeLookupError> swift::_checkGenericRequirements(
1875
// Now, check all of the generic arguments for suppressible protocols.
1876
unsigned numGenericParams = genericParams.size();
1877
for (unsigned index = 0; index != numGenericParams; ++index) {
1878
+ // Non-key arguments don't need to be checked, because they are
1879
+ // aliased to another type.
1880
+ if (!genericParams[index].hasKeyArgument())
1881
+ continue;
1882
+
1883
SuppressibleProtocolSet suppressed;
1884
if (index < allSuppressed.size())
1885
suppressed = allSuppressed[index];
0 commit comments