Files
swift-mirror/validation-test/IRGen/rdar152580661.swift
Nate Chandler d8c6f9817c [TypeLowering] Record pack used in aggregate sig.
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
2025-06-05 17:45:14 -07:00

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
}