[Issue 17607] not an associative array initializer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 30 16:12:15 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17607

John Colvin <john.loughran.colvin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.loughran.colvin at gmail.
                   |                            |com

--- Comment #1 from John Colvin <john.loughran.colvin at gmail.com> ---
Another simpler case of this:

struct S
{
    //Error: not an associative array initializer
    D a = ["fdsa": ["fdsafd": "fdsfa"]];

    // OK
    D b = (["fdsa": ["fdsafd": "fdsfa"]]);
}

struct D
{
    this(string[string][string]) {}
}


Andre, perhaps putting brackets around it is a workaround for you as well?

--


More information about the Digitalmars-d-bugs mailing list