[Issue 1768] CTFE: cant ~= an array literal to an unitinitialized array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 17 08:09:11 PDT 2008


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





------- Comment #4 from samukha at voliacable.com  2008-06-17 10:09 -------
While you are at it, please ensure that this works too:

(For dmd 1.030)

char[][] foo(char[][] a = null)
{
    a ~= ["oops"];
    return a;
}

static assert(foo()[0] == "oops");


-- 



More information about the Digitalmars-d-bugs mailing list