[Issue 21268] New: Redundant storage classes are allowed for user defined types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 22 12:42:18 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21268
Issue ID: 21268
Summary: Redundant storage classes are allowed for user defined
types
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
For instance, 'ref' can be use in any class, struct, union, or enum
declaration.
---
ref struct S
{
int member;
}
ref class C
{
int member;
}
ref enum E
{
member,
}
ref union U
{
int member;
}
---
This storage class has no effect on the type, unlike 'const', as a counter
example.
--
More information about the Digitalmars-d-bugs
mailing list