On 12/25/2012 12:59 PM, mist wrote:
http://dpaste.dzfl.pl/0cda8d0f

bug or feature?

For convenience to others, here is your code:

struct Test
{
    void delegate() const deleg;
}

void main()
{
    static assert( is(typeof(Test.deleg) == const) );
}

I don't know the answer but this works:

struct Test
{
    alias void delegate() Deleg;
    const Deleg deleg;
}

void main()
{
    static assert( is(typeof(Test.deleg) == const) );
}

Ali

Reply via email to