Save progress

This commit is contained in:
ryuukk 2023-10-05 20:58:08 +02:00
parent 64d647198b
commit 7a64de71a1
1 changed files with 4 additions and 3 deletions

View File

@ -550,7 +550,7 @@ do
return; return;
} }
if (lastSuffix !is null && lastSuffix.qualifier == SymbolQualifier.none) if (lastSuffix !is null)
{ {
assert(suffix !is null); assert(suffix !is null);
typeSwap(currentSymbol); typeSwap(currentSymbol);
@ -702,7 +702,8 @@ void resolveTypeFromInitializer(DSymbol* symbol, TypeLookup* lookup,
symbol.type = currentSymbol; symbol.type = currentSymbol;
symbol.ownType = false; symbol.ownType = false;
writeln(">> type: ", currentSymbol.name); if (currentSymbol)
writeln(">> type: ", currentSymbol.name);
} }
private: private:
@ -827,4 +828,4 @@ void typeSwap(ref DSymbol* currentSymbol)
|| currentSymbol.kind == CompletionKind.withSymbol || currentSymbol.kind == CompletionKind.withSymbol
|| currentSymbol.kind == CompletionKind.aliasName)) || currentSymbol.kind == CompletionKind.aliasName))
currentSymbol = currentSymbol.type; currentSymbol = currentSymbol.type;
} }