You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Jonathan M Davis (@jmdavis) reported this on 2016-04-16T00:21:46Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=15931
Description
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.The text was updated successfully, but these errors were encountered: