[Issue 258] New: Undefined identifier error for circular import
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 19 14:53:08 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=258
Summary: Undefined identifier error for circular import
Product: D
Version: 0.163
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: smjg at iname.com
----- core.d -----
public import application, windowbase;
----- application.d -----
import core;
WindowBase mainWindow() {
return null;
}
----- windowbase.d -----
import core;
class WindowBase {}
----------
D:\My Documents\Programming\D\smjg\libs\sdwf bug>dmd -c core.d
application.d(3): identifier 'WindowBase' is not defined
application.d(3): WindowBase is used as a type
D:\My Documents\Programming\D\smjg\libs\sdwf bug>dmd -c windowbase.d
application.d(3): identifier 'WindowBase' is not defined
application.d(3): WindowBase is used as a type
D:\My Documents\Programming\D\smjg\libs\sdwf bug>dmd -c application.d
----------
It doesn't matter whether the imports in application.d and windowbase.d are
private or public. If the imports in core.d are swapped, all files compile
without error.
--
More information about the Digitalmars-d-bugs
mailing list