mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Subscript default arguments
Fixes <https://bugs.swift.org/browse/SR-6118>.
This commit is contained in:
@@ -318,8 +318,10 @@ ResilienceExpansion DeclContext::getResilienceExpansion() const {
|
||||
const ValueDecl *VD;
|
||||
if (auto *FD = dyn_cast<AbstractFunctionDecl>(dc)) {
|
||||
VD = FD;
|
||||
} else if (auto *EED = dyn_cast<EnumElementDecl>(dc)) {
|
||||
VD = EED;
|
||||
} else {
|
||||
VD = cast<EnumElementDecl>(dc);
|
||||
VD = cast<SubscriptDecl>(dc);
|
||||
}
|
||||
|
||||
auto access =
|
||||
|
||||
Reference in New Issue
Block a user