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

--- Comment #0 from George <> 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:
------- You are receiving this mail because: -------

Reply via email to