http://d.puremagic.com/issues/show_bug.cgi?id=7046

           Summary: CTFE: append null does nothing
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: destructiona...@gmail.com


--- Comment #0 from Adam D. Ruppe <destructiona...@gmail.com> 2011-12-01 
18:07:38 PST ---
string[] test() {
    string[] ret;

    ret ~= null;
    ret ~= null;

    assert(ret.length == 2); // fails
    return ret;
}

void main() {
    enum ctfe = test();
}

===
test90.d(7): Error: assert(ret.length == 2u) failed
test90.d(12):        called from here: a()

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to