http://d.puremagic.com/issues/show_bug.cgi?id=5185
Summary: unittest in template classes: recursive template expansion error Product: D Version: D1 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: indi...@mail.ru --- Comment #0 from George <indi...@mail.ru> 2010-11-07 12:22:29 PST --- It's very comfortable to place unittest code near functions. But in template classes in some cases it cannot be done: class C(V) { V v; void foo() { } unittest { C!(C!(int)) c; // Error: recursive template expansion for template argument C!(int).C } } unittest { C!(C!(int)) c; // the same code here don't cause this error } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------