Skip to content

Commit 19d87b3

Browse files
committed
1 parent a5a15ba commit 19d87b3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %target-swift-emit-silgen %s -requirement-machine-abstract-signatures=on | %FileCheck %s
2+
3+
// This is a GenericSignatureBuilder bug fixed with the Requirement Machine, from
4+
// https://bugs.swift.org/browse/SR-15917.
5+
6+
public struct Foo<Unused: CaseIterable> {
7+
public struct Nested {}
8+
9+
public let closure: () -> Nested
10+
}
11+
12+
// CHECK-LABEL: sil [transparent] [serialized] [ossa] @$s029type_lowering_subst_function_A13_caseiterable3FooV7closureAC6NestedVyx_Gycvg : $@convention(method) <Unused where Unused : CaseIterable> (@guaranteed Foo<Unused>) -> @owned @callee_guaranteed @substituted <τ_0_0, τ_0_1 where τ_0_0 : CaseIterable, τ_0_0 == τ_0_1> () -> Foo<τ_0_0>.Nested for <Unused, Unused>

0 commit comments

Comments
 (0)