mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
15 lines
197 B
D
15 lines
197 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/diag4540.d(11): Error: `x` must be of integral or string type, it is a `float`
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
float x;
|
|
switch (x)
|
|
{
|
|
default:
|
|
}
|
|
}
|