summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/diag6373.d
blob: 8711b90f6abc838bf85efa9cce3e3626b03ce53e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
REQUIRED_ARGS: -de
TEST_OUTPUT:
---
fail_compilation/diag6373.d(15): Error: class `diag6373.Bar` use of `diag6373.Foo.method(double x)` is hidden by `Bar`; use `alias method = Foo.method;` to introduce base class overload set
---
*/

class Foo
{
    void method(int x) { }
    void method(double x) { }
}

class Bar : Foo
{
    override void method(int x) { }
}

void main() { }