www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Is this limitation of declarations order a bug?

We cannot compile the next code in dmd-trunk.

class C { static ushort x = y; static const ushort y = 1; }

Is it a bug or not?
Apr 30 2011