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:
parent
821ecf5105
commit
b9561e9f4f
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue