mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We currently assume that, if a subscript is declared within a value type’s decl, it must need `self` to be passed inout. This isn’t true for static subscripts, because even though the DeclContext is a value type, the metatype is actually a reference type. Skip this check for non-instance members. NFC until static subscripts are added.
93 KiB
93 KiB