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

RazvanN <[email protected]> changed:

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

--- Comment #1 from RazvanN <[email protected]> ---
A reduction of the test case:

struct Test
{
    int test;
}

void func(Test t) {}

void main()
{

    Test a = {test: 1}; 
    func({test: 1});                                                            
}

It seems that struct initializers only work when they are the rhs of an assign
expression.

--

Reply via email to