mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00

* Fix dlang#18262 - Resolved special enum case and other conflicts * Fix dlang#18262 - Resolved Special Enum case and failing test. * Fix dlang#18262 - Resolved special enum case and other failing tests
18 lines
298 B
D
18 lines
298 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation\enum_auto_increment.d(17): Error: cannot automatically assign value to enum member `enum_auto_increment.A2.d` because base type `A1` is an enum; provide an explicit value
|
|
---
|
|
*/
|
|
|
|
enum A1 : int
|
|
{
|
|
a,
|
|
b,
|
|
}
|
|
|
|
enum A2 : A1
|
|
{
|
|
c,
|
|
d,
|
|
}
|