File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2560,8 +2560,8 @@ static void inferDynamic(ASTContext &ctx, ValueDecl *D) {
2560
2560
if (auto VD = dyn_cast<VarDecl>(D)) {
2561
2561
auto staticSpelling = VD->getParentPatternBinding ()->getStaticSpelling ();
2562
2562
2563
- // The presence of 'static' bocks the inference of 'dynamic'.
2564
- if (VD-> isStatic () && staticSpelling == StaticSpellingKind::KeywordStatic)
2563
+ // The presence of 'static' blocks the inference of 'dynamic'.
2564
+ if (staticSpelling == StaticSpellingKind::KeywordStatic)
2565
2565
return ;
2566
2566
2567
2567
if (VD->isLet () && !isNSManaged)
@@ -2577,7 +2577,7 @@ static void inferDynamic(ASTContext &ctx, ValueDecl *D) {
2577
2577
auto staticSpelling = FD->getStaticSpelling ();
2578
2578
2579
2579
// The presence of 'static' bocks the inference of 'dynamic'.
2580
- if (FD-> isStatic () && staticSpelling == StaticSpellingKind::KeywordStatic)
2580
+ if (staticSpelling == StaticSpellingKind::KeywordStatic)
2581
2581
return ;
2582
2582
}
2583
2583
You can’t perform that action at this time.
0 commit comments