mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user