gcc/testsuite/gdc.test/fail_compilation/diag6373.d
raw| 1 | /* |
| 2 | REQUIRED_ARGS: -de |
| 3 | TEST_OUTPUT: |
| 4 | --- |
| 5 | 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 |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | class Foo |
| 10 | { |
| 11 | void method(int x) { } |
| 12 | void method(double x) { } |
| 13 | } |
| 14 | |
| 15 | class Bar : Foo |
| 16 | { |
| 17 | override void method(int x) { } |
| 18 | } |
| 19 | |
| 20 | void main() { } |