| 1 |
/* |
| 2 |
REQUIRED_ARGS: -de |
| 3 |
TEST_OUTPUT: |
| 4 |
--- |
| 5 |
fail_compilation/fail17492.d(20): Error: function `fail17492.C.testE()` conflicts with previous declaration at fail_compilation/fail17492.d(13) |
| 6 |
fail_compilation/fail17492.d(37): Error: function `fail17492.S.testE()` conflicts with previous declaration at fail_compilation/fail17492.d(30) |
| 7 |
--- |
| 8 |
https://issues.dlang.org/show_bug.cgi?id=17492 |
| 9 |
*/ |
| 10 |
|
| 11 |
class C |
| 12 |
{ |
| 13 |
void testE() |
| 14 |
{ |
| 15 |
class I |
| 16 |
{ |
| 17 |
} |
| 18 |
} |
| 19 |
|
| 20 |
void testE() |
| 21 |
{ |
| 22 |
class I |
| 23 |
{ |
| 24 |
} |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
class S |
| 29 |
{ |
| 30 |
void testE() |
| 31 |
{ |
| 32 |
struct I |
| 33 |
{ |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
void testE() |
| 38 |
{ |
| 39 |
struct I |
| 40 |
{ |
| 41 |
} |
| 42 |
} |
| 43 |
} |