mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
43 lines
671 B
D
43 lines
671 B
D
/*
|
|
REQUIRED_ARGS: -de
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail17492.d(20): Error: function `fail17492.C.testE()` conflicts with previous declaration at fail_compilation/fail17492.d(13)
|
|
fail_compilation/fail17492.d(37): Error: function `fail17492.S.testE()` conflicts with previous declaration at fail_compilation/fail17492.d(30)
|
|
---
|
|
https://issues.dlang.org/show_bug.cgi?id=17492
|
|
*/
|
|
|
|
class C
|
|
{
|
|
void testE()
|
|
{
|
|
class I
|
|
{
|
|
}
|
|
}
|
|
|
|
void testE()
|
|
{
|
|
class I
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
class S
|
|
{
|
|
void testE()
|
|
{
|
|
struct I
|
|
{
|
|
}
|
|
}
|
|
|
|
void testE()
|
|
{
|
|
struct I
|
|
{
|
|
}
|
|
}
|
|
}
|