mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Quiz: What does @_transparent on an extension actually *do*? 1) Make all members @_transparent? 2) Allow your members to be @_transparent? 3) Some other magical effect that has nothing to do with members? The correct answer is 1), however a few places in the stdlib defined a @_transparent extension and then proceeded to make some or all members also @_transparent, and in a couple of places we defined a @_transparent extension with no members at all. To avoid cargo culting and confusion, remove the ability to make @_transparent extensions altogether, and force usages to be explicit.
1.4 KiB
1.4 KiB