Always add object to the list of imported modules. This fixes #103 and a few bugs that should have been filed but were not

This commit is contained in:
Hackerpilot 2014-02-09 16:14:39 -08:00
parent 821ecf5105
commit b9561e9f4f
1 changed files with 4 additions and 0 deletions

View File

@ -250,6 +250,10 @@ final class FirstPass : ASTVisitor
symbolFile);
rootSymbol = currentSymbol;
currentScope = new Scope(0, size_t.max);
ImportInformation i;
i.modulePath = "object";
i.importParts ~= "object";
currentScope.importInformation ~= i;
moduleScope = currentScope;
mod.accept(this);
}