Commits

Joe Groff committed 70de0802e92
AST: Make the @inout-ness of interface types for protocol members consistent with their old types. There are two places that need to be fixed: - getSelfTypeForContainer needs to check for a ProtocolDecl context instead of assuming ArchetypeType self == protocol method. Archetypes don't appear in interface types. - semaFuncDecl's computeSelfType helper needs to have the same special case for protocol contexts as getSelfTypeForContainer. This will hopefully be tested soon when I can land my next round of SIL interface type changes. This exposes a problem with Chris's approach to handling the Self of @mutating protocol methods--the fact that they're still @inout manifests to the user if they try to use an uncurried instance method of a generic or existential type. This isn't on the critical path so leave it as <rdar://problem/15821762> for now. Swift SVN r12312