File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -6316,7 +6316,9 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
6316
6316
SILType::getPrimitiveObjectType (indexedElementType);
6317
6317
auto substTargetElementSILType =
6318
6318
targetElementSILType.subst (F.getModule (),
6319
- substTypes, substConformances);
6319
+ substTypes, substConformances,
6320
+ CanGenericSignature (),
6321
+ SubstFlags::PreservePackExpansionLevel);
6320
6322
requireSameType (indexedElementSILType, substTargetElementSILType,
6321
6323
" lanewise-substituted pack element type didn't "
6322
6324
" match expected element type" );
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend -emit-ir %s -disable-availability-checking
2
+
3
+ // https://github.com/swiftlang/swift/issues/75329
4
+
5
+ struct GPack1 < each P , T> { }
6
+ struct GPack2 < each P > {
7
+ struct G < T> { }
8
+ }
9
+
10
+ func test< each T > (
11
+ example1: repeat GPack1 < repeat each T , each T > ,
12
+ example2: repeat GPack2 < repeat each T > . G < each T >
13
+ ) {
14
+ let _ = ( repeat each example1) // Boom
15
+ }
You can’t perform that action at this time.
0 commit comments