mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
19 lines
455 B
D
19 lines
455 B
D
// https://issues.dlang.org/show_bug.cgi?id=21246
|
|
// EXTRA_FILES: imports/test21246.d
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test21246.d(16): Error: function `void test21246.C.set(Clock clock)` does not override any function, did you mean to override `void imports.test21246.B.set(imports.test21246.Clock clock)`?
|
|
---
|
|
*/
|
|
module test21246;
|
|
|
|
import imports.test21246;
|
|
|
|
class Clock { }
|
|
class C : B
|
|
{
|
|
override void set (Clock clock) { }
|
|
}
|
|
|
|
void main () { }
|