From 7a64de71a11b9d35edbaaecda2e5d48aa8882ce2 Mon Sep 17 00:00:00 2001 From: ryuukk Date: Thu, 5 Oct 2023 20:58:08 +0200 Subject: [PATCH] Save progress --- dsymbol/src/dsymbol/conversion/second.d | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dsymbol/src/dsymbol/conversion/second.d b/dsymbol/src/dsymbol/conversion/second.d index 7c946d3..ccd5619 100644 --- a/dsymbol/src/dsymbol/conversion/second.d +++ b/dsymbol/src/dsymbol/conversion/second.d @@ -550,7 +550,7 @@ do return; } - if (lastSuffix !is null && lastSuffix.qualifier == SymbolQualifier.none) + if (lastSuffix !is null) { assert(suffix !is null); typeSwap(currentSymbol); @@ -702,7 +702,8 @@ void resolveTypeFromInitializer(DSymbol* symbol, TypeLookup* lookup, symbol.type = currentSymbol; symbol.ownType = false; - writeln(">> type: ", currentSymbol.name); + if (currentSymbol) + writeln(">> type: ", currentSymbol.name); } private: @@ -827,4 +828,4 @@ void typeSwap(ref DSymbol* currentSymbol) || currentSymbol.kind == CompletionKind.withSymbol || currentSymbol.kind == CompletionKind.aliasName)) currentSymbol = currentSymbol.type; -} +} \ No newline at end of file