Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

XML Document does not compile with -warning flag

Moderators: kris

Posted: 10/26/08 08:37:39

Following code does not compile if the warning flag is present.

File myxml.d

import tango.text.xml.Document ; void main () {

auto doc = new Document!(char); // create the Document to parse into


C:\>dmd -w -g myxml.d

warning - C:\D\tangobos-0.99.7-bin-win32-dmd.1.033\bin\..\import\tango\text\xml\PullParser?.d(266): Error: statement is not reachable

Author Message

Posted: 10/27/08 00:32:33

fixed, and thanks