mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Subscript default arguments
Fixes <https://bugs.swift.org/browse/SR-6118>.
This commit is contained in:
@@ -100,6 +100,9 @@ DeclName SILGenModule::getMagicFunctionName(DeclContext *dc) {
|
||||
if (auto EED = dyn_cast<EnumElementDecl>(dc)) {
|
||||
return EED->getFullName();
|
||||
}
|
||||
if (auto SD = dyn_cast<SubscriptDecl>(dc)) {
|
||||
return SD->getFullName();
|
||||
}
|
||||
llvm_unreachable("unexpected #function context");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user