mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Suggest narrowing an exising availability context, when feasible.
This commit is contained in:
@@ -2308,7 +2308,9 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext) {
|
||||
Attr = new (ctx) AvailableAttr(
|
||||
SourceLoc(), SourceRange(),
|
||||
(PlatformKind)platform, message, rename,
|
||||
Introduced, Deprecated, Obsoleted,
|
||||
Introduced, SourceRange(),
|
||||
Deprecated, SourceRange(),
|
||||
Obsoleted, SourceRange(),
|
||||
platformAgnostic, isImplicit);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user