mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
11 lines
213 B
D
11 lines
213 B
D
alias TestType = ubyte;
|
|
|
|
void test(immutable TestType a, immutable TestType b, TestType c)
|
|
{
|
|
switch(c)
|
|
{
|
|
case a: break;
|
|
case (cast(ushort)b): break;
|
|
default: assert(false);
|
|
}
|
|
}
|