mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[serialization] Make sure accessors are correctly associated with a subscript.
Trivial fix. Undetected for a long time because most accesses go from subscript to accessors, rather than the other way around. Swift SVN r6517
This commit is contained in:
@@ -1147,6 +1147,11 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext,
|
||||
|
||||
auto overriddenDecl = cast_or_null<SubscriptDecl>(getDecl(overriddenID));
|
||||
subscript->setOverriddenDecl(overriddenDecl);
|
||||
|
||||
if (getter)
|
||||
getter->makeGetter(subscript);
|
||||
if (setter)
|
||||
setter->makeSetter(subscript);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user