Skip to content

Commit 34dc07d

Browse files
committed
AST: don’t print ‘final’ on a ‘let’
1 parent ec565cd commit 34dc07d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,8 @@ namespace {
753753
}
754754
}
755755

756-
if (VD->isFinal())
756+
auto VarD = dyn_cast<VarDecl>(VD);
757+
if (VD->isFinal() && !(VarD && VarD->isLet()))
757758
OS << " final";
758759
if (VD->isObjC())
759760
OS << " @objc";

0 commit comments

Comments
 (0)