Untitled

Run Settings
LanguageD
Language Version
Run Command
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() { }
module dio; public class A { public enum int a = 1; protected enum int b = 2; private enum int c = 3; public static immutable int d = 4; protected static immutable int e = 5; private static immutable int f = 6; protected static struct S { } } public class A2 { protected static struct S { } }
Editor Settings
Theme
Key bindings
Full width
Lines