Strange type redifinition error
Denis Koroskin
2korden at gmail.com
Wed Oct 8 11:12:07 PDT 2008
I am getting the following error message on one of my source files
(D2.019):
Path.d(56): Error: Types.BOOL at Types.d(5) conflicts with
win32.windef.BOOL at win32\windef.d(60)
win32\windef.d(60) looks like this:
alias int WINBOOL, BOOL, INT, LONG, HFILE, HRESULT;
Types.d(5) looks like this:
import win32.windef : BOOL;
Path.d includes lots of files that include both Types.d and win32\windef.d
through a long inclusion chain.
Why does "import win32.windef : BOOL;" defines new type?
It is a bug, I guess. Removing ": BOOL;" solves the problem. Shall I put
it into bugzilla?
More information about the Digitalmars-d
mailing list