mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
rdar://153681688 Instead fo counting the actual conformances, the logic took the size of the bit field, i.e. used the highest set bit, so when a type had a conditional conformance only on ~Escapable, but not on ~Copyable, it would still add 2 placeholders, but only fill one.
9 lines
207 B
Swift
9 lines
207 B
Swift
// RUN: %target-swift-frontend %s -target %target-swift-5.9-abi-triple -emit-ir
|
|
|
|
public enum Enum<T : ~Escapable> : ~Escapable {
|
|
case none
|
|
case some(T)
|
|
}
|
|
|
|
extension Enum: Escapable where T: Escapable {}
|