www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - ModuleInfo bug

The following assertion fails on my WinXP box with DMD.144:


import std.moduleinit;

void main() {
	foreach (ModuleInfo mi; _moduleinfo_array) {
		foreach (ClassInfo lci; mi.localClasses) {
			assert (lci !is null);
		}
	}
}


It also fails if there are some classes defined in the module.
By the way, would it be possible to add a property like 'moduleof' of 
type ModuleInfo to ClassInfo ? It would be really useful :)



-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d-pu s+: a-->----- C+++$>++++ UL P+ L+ E--- W++ N++ o? K? w++ !O 
!M V? PS- PE- Y PGP t 5 X? R tv-- b DI- D+ G e>+++ h>++ !r !y
------END GEEK CODE BLOCK------

Tomasz Stachowiak  /+ a.k.a. h3r3tic +/
Jan 29 2006