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.
2 parents b3a3abe + dc2e0c9 commit e4057a4Copy full SHA for e4057a4
lib/AST/RequirementMachine/RequirementMachineRequests.cpp
@@ -620,7 +620,8 @@ AbstractGenericSignatureRequest::evaluate(
620
return Type(type);
621
},
622
MakeAbstractConformanceForGenericType(),
623
- SubstFlags::AllowLoweredTypes);
+ SubstFlags::AllowLoweredTypes |
624
+ SubstFlags::PreservePackExpansionLevel);
625
resugaredRequirements.push_back(resugaredReq);
626
}
627
test/Generics/rdar115538386.swift
@@ -0,0 +1,13 @@
1
+// RUN: %target-swift-frontend -typecheck %s -disable-availability-checking
2
+
3
+protocol P<A> {
4
+ associatedtype A
5
+}
6
7
+struct S<each T>: P {
8
+ typealias A = (repeat each T)
9
10
11
+func foo<each T>() -> some P<(repeat each T)> {
12
+ S<repeat each T>()
13
0 commit comments