mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
15 lines
219 B
D
15 lines
219 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test16523.d(12): Error: `case` variables have to be `const` or `immutable`
|
|
---
|
|
*/
|
|
|
|
void test(int a, int b)
|
|
{
|
|
switch (a)
|
|
{
|
|
case b: return;
|
|
default: assert(0);
|
|
}
|
|
}
|