I was trying to declare a static variable dependent on another static variable, but it didn't work. Are static variables not known to other static variables at compile time?

void main()
{       
        C c = new C();
}

class C
{
    static size_t A = 2;
    static size_t B = 2^^A; // A is not known at compile time
}

Reply via email to