mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The "iterate until fixed point" would cause an infinite loop where we
wrap type parameter packs in a PackElementType and increase the level
forever otherwise.
This was a regression from commit 103428fe80.
Fixes rdar://160804717.
28 lines
694 B
Swift
28 lines
694 B
Swift
// RUN: %target-swift-frontend -emit-ir %s -target %target-swift-5.9-abi-triple
|
|
// REQUIRES: objc_interop
|
|
|
|
// This used to trigger an infinite loop in conformance substitution
|
|
// when emitting the opaque type descriptor in IRGen.
|
|
|
|
// rdar://160804717
|
|
|
|
import SwiftUI
|
|
|
|
public struct CategorySplitView<each Destination: View>: View {
|
|
let titleKey: LocalizedStringKey
|
|
let groups: (repeat each Destination)
|
|
|
|
public var body: some View {
|
|
TupleView((repeat CategoryGroupSidebar(group: each groups))).navigationTitle(titleKey)
|
|
}
|
|
}
|
|
|
|
public struct CategoryGroupSidebar<Destination>: View {
|
|
let group: Destination
|
|
|
|
public var body: some View {
|
|
Text("Hi")
|
|
}
|
|
}
|
|
|