Upgrade frontend & libs to early v2.095.0 (dlang/dmd@a4274b3c39)

This commit is contained in:
Martin Kinkelin 2020-11-26 21:21:50 +01:00
parent 7cd5a37401
commit 079858f3b2
89 changed files with 3068 additions and 2473 deletions

View file

@ -1747,7 +1747,7 @@ FuncDeclaration *getParentFunc(Dsymbol *sym) {
// nested.
if (FuncDeclaration *fd = sym->isFuncDeclaration()) {
bool certainlyNewRoot =
fd->isStatic() || (!fd->isThis() && fd->linkage != LINKd) ||
fd->isStatic() || (!fd->isThis() && fd->linkage != LINK::d) ||
(fd->isFuncLiteralDeclaration() &&
static_cast<FuncLiteralDeclaration *>(fd)->tok == TOKfunction);
if (certainlyNewRoot) {