mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
23 lines
389 B
D
23 lines
389 B
D
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test18736.d(21): Error: constructor calls not allowed in loops or after labels
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=18736
|
|
|
|
class A
|
|
{
|
|
this(char c) { }
|
|
|
|
this(int i)
|
|
{
|
|
switch (i)
|
|
{
|
|
case 1: break;
|
|
case 2: .. case 4: break;
|
|
default: break;
|
|
}
|
|
this('c');
|
|
}
|
|
}
|