digitalmars.D.bugs - [Issue 19081] New: Can't declare enum with UDA in unittest blocks
- d-bugmail puremagic.com (29/29) Jul 12 2018 https://issues.dlang.org/show_bug.cgi?id=19081
https://issues.dlang.org/show_bug.cgi?id=19081 Issue ID: 19081 Summary: Can't declare enum with UDA in unittest blocks Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: yshuiv7 gmail.com Example: (1) enum A { A } // Fine struct T1 { (1) struct T2 {} // Fine (1) enum A { A } // Fine } debug { (1) enum Op { Add, Sub } // Fine } unittest { (1) struct X { } // Fine (1) enum Op { Add, Sub } // Not fine ?! } void main() {} https://godbolt.org/g/TSQeYW --
Jul 12 2018