Bug 21268 – Redundant storage classes are allowed for user defined types

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-09-22T12:42:18Z
Last change time
2024-12-13T19:11:43Z
Assigned to
No Owner
Creator
Iain Buclaw
Moved to GitHub: dmd#17988 →

Comments

Comment #0 by ibuclaw — 2020-09-22T12:42:18Z
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.
Comment #1 by robert.schadek — 2024-12-13T19:11:43Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17988 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB