Files
swift-mirror/lib/Sema/ConstraintSystem.cpp
Brent Royal-Gordon 67af97c4db [NFC] Correct constraint system assumption
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.
2019-04-01 18:04:00 -07:00

93 KiB