On Saturday, 19 September 2015 at 21:48:25 UTC, Random D user wrote:
Assertion failure: 'type->ty != Tstruct || ((TypeStruct *)type)->sym == this' on line 957 in file 'struct.c'

Ok managed to reduce this one to my own copy paste bug. This is invalid code, but compiler shouldn't crash...

I'm posting this here for reference (I will file a bug later):

class Gui
{
    enum MouseButton { Left = 0, Right };

private:

    struct ClickPair
    {
            MouseButton button = MouseButton.Left;
    };

struct ClickPair // Second struct ClickPair with the enum above --> Assertion failure: 'type->ty != Tstruct || ((TypeStruct*)type)->sym == this' on line 957 in file 'struct.c'
    {
            MouseButton button = MouseButton.Left;
    };
};

Reply via email to