Quick actions

cmd+k|ctrl+k

Navigation

Languages

Untitled

Snippet info

Language

D

Visibility

unlisted

Author

legacy-anonymous

Created

2018-08-28T15:31:19Z

Updated

2018-08-28T15:31:19Z

import dio;

class B : A {
    pragma(msg, "The value of A.a is: ", typeof(super).a);
    pragma(msg, "The value of A.b is: ", typeof(super).b);
    //pragma(msg, "The value of A.c is: ", typeof(super).c); // Expected failure
    pragma(msg, "The value of A.d is: ", typeof(super).d);
    pragma(msg, "The value of A.e is: ", typeof(super).e); // *BUG* Comment this line and *BOTH* errors will go away!!
    //pragma(msg, "The value of A.f is: ", typeof(super).f); // Expected failure
    
    S s;
}

class C : B {
    S s;
}

class B2 : A2 {
    S s;
}
class C2 : B2 {
    S s;
}

void main()
{
}
INFO