From b9561e9f4fa36d7999698f21acfeedd059f860d2 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Sun, 9 Feb 2014 16:14:39 -0800 Subject: [PATCH] Always add object to the list of imported modules. This fixes #103 and a few bugs that should have been filed but were not --- astconverter.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/astconverter.d b/astconverter.d index f8cff2a..b581132 100644 --- a/astconverter.d +++ b/astconverter.d @@ -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); }