[Issue 5185] New: unittest in template classes: recursive template expansion error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 7 12:23:33 PST 2010
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: nobody at puremagic.com
ReportedBy: indigon at mail.ru
--- Comment #0 from George <indigon at 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: -------
More information about the Digitalmars-d-bugs
mailing list