mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Enum constructors take their arguments +1 by default, but they can now be used to satisfy protocol static member requirements, which take arguments +0 by default. Type lowering would accidentally use the kind of the witness to determine the conventions for the witness thunk, leading to a miscompile when the requirement is called through the protocol. Fixes rdar://74117738.
379 B
379 B