== Auszug aus David Nadlinger (s...@klickverbot.at)'s Artikel > On 3/26/11 11:08 PM, bearophile wrote: > > I suggest to copy your code, and then keep removing lines from your copy, making sure it keep showing the same compiler error. In some time you will probably be able to produce a small program, fit for this newsgroup or even for Bugzilla. (There are tools to do this reduction automatically in Python, I think). > You don't necessarily need fancy tools to do that – as I recently > pointed out in another thread, the Tigris »delta« tool worked fine for > me on several occasions (http://delta.tigris.org/). Just write a simple > shell script looking for the error message in the compiler output, and > delta will try to automatically reduce the file for you. > There is some room for improvement though when you have an actual > lexer/parser available for heuristically determining what pieces of code > to delete – this might be a nice demonstration project for a D parsing > library. > David
I figured out what produces the error - "import dcollections.LinkList;" (declared as private) in one source file. But I'm still unable to reproduce that error in a sample-application. What I currently can say, that I have two source files like: module firstModule; private { import dcollections.LinkList; LinkList!(uint) myPrivateList; } static this() { myPrivateList = new LinkList!(uint); } module secondModule; import firstModule; import dcollections.LinkList; LinkList!(uint) list; void main(string[] args) { list = new LinkList!(uint); } In my tests, that code above doesn't produces the assertion failure, but my original source code looks very similar.