mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Every `LowerType::visit*` function eventually calls through to a `LowerType::handle*` function. After https://github.com/swiftlang/swift/pull/81581, every `LowerType::handle*` needs to set the `hasPack` flag based on the passed-in type by calling `mergeHasPack`. Add the missing call in the `handleAggregateByProperties` function. rdar://152580661
15 lines
231 B
Swift
15 lines
231 B
Swift
// RUN: %target-swift-frontend %s -target %target-swift-5.9-abi-triple -emit-ir
|
|
|
|
struct H<T> {
|
|
var packs: [Pack<T>] {
|
|
id(_packs)
|
|
}
|
|
let _packs: [Pack<T>]
|
|
}
|
|
|
|
struct Pack<each T> {}
|
|
|
|
func id<T>(_ t: T) -> T {
|
|
return t
|
|
}
|