Files
swift-mirror/validation-test/IRGen/rdar153681688.swift
Dario Rexin 5ec58209dc [IRGen] Fix placeholder logic for emission of conditionally inverted protocols
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.
2025-06-18 11:28:13 -07:00

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 {}