This code compiles withut error:
class C
{
}
class D : const(C)
{
}
void main()
{
}
I assume that this is just another case of the compiler ignoring an attribute when it doesn't apply, but in this case, it's pointless and potentially confusing. immutable, inout, and shared are also all currently allowed by the compiler.
Comment #1 by robert.schadek — 2024-12-13T18:47:27Z