Various inout improvements:

- purge @inout from comments in the compiler except for places talking about
   the SIL argument convention.
 - change diagnostics to not refer to @inout
 - Change the astprinter to print InoutType without the @, so it doesn't show
   up in diagnostics or in closure argument types in code completion.
 - Implement type parsing support for the new inout syntax (before we just 
   handled patterns).
 - Switch the last couple of uses in the stdlib (in types) to inout.
 - Various testcase updates (more to come).



Swift SVN r13564
This commit is contained in:
Chris Lattner
2014-02-06 06:22:27 +00:00
parent 79cbda7f88
commit 827acad533
41 changed files with 112 additions and 97 deletions

View File

@@ -922,7 +922,7 @@ ConstraintSystem::getTypeOfMemberReference(Type baseTy, ValueDecl *value,
// for 'self' to the type.
if (!isa<AbstractFunctionDecl>(value) && !isa<EnumElementDecl>(value)) {
// If self is a struct, properly qualify it based on our base
// qualification. If we have an lvalue coming in, we expect an @inout.
// qualification. If we have an lvalue coming in, we expect an inout.
if (!selfTy->hasReferenceSemantics() && baseTy->is<LValueType>())
selfTy = InOutType::get(selfTy);