mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
17 lines
243 B
D
17 lines
243 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail288.d(14): Error: case ranges not allowed in `final switch`
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
enum E { a, b }
|
|
E i = E.a;
|
|
final switch (i)
|
|
{
|
|
case E.a: .. case E.b:
|
|
break;
|
|
}
|
|
}
|