blob: 6bf5da9f3e224481b54cbc28fc7a2738c029a18d [file] [log] [blame]
/*
TEST_OUTPUT:
---
compilable/b17111.d(16): Deprecation: `case` variables have to be `const` or `immutable`
compilable/b17111.d(17): Deprecation: `case` variables have to be `const` or `immutable`
---
*/
alias TestType = ubyte;
void test()
{
TestType a,b,c;
switch(c)
{
case a: break;
case (cast(ushort)b): break;
default: assert(false);
}
}