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

John Belmonte <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from John Belmonte <[email protected]> ---
The memberName:expression variant of initialization is also affected:

struct Foo {
    int function(int) bar;
}

static Foo foo = {
    bar : function(x) { return 2 * x; },  // broken
    //bar : (x) => 2 * x,  // works
};

This seems to be a parsing issue where the struct initializer can't handle
nested curly brackets.

--

Reply via email to