| Thread overview | |||||
|---|---|---|---|---|---|
|
December 13, 2022 [Issue 23552] Function `x` does not override any function, but it actually does | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23552 --- Comment #1 from Grim Maple <grimmaple95@gmail.com> --- Similar issue happens with below code: ``` import std; class Base { final void foo() { } } class Derived : Base { override void foo() { writeln("foo"); } int data() { return 0; } } class DerivedX : Derived { override int data() { return 1; } } ``` Error output: ``` onlineapp.d(10): Error: function `onlineapp.Derived.foo` cannot override `final` function `onlineapp.Base.foo` onlineapp.d(10): Error: function `void onlineapp.Derived.foo()` does not override any function, did you mean to override `void onlineapp.Base.foo()`? onlineapp.d(16): Error: function `onlineapp.DerivedX.data` does not override any function ``` -- | ||||
December 16, 2022 [Issue 23552] Function `x` does not override any function, but it actually does | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23552 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> --- @RazvanN7 created dlang/dmd pull request #14704 "Fix Issue 23552 - Function x does not override any function, but it actually does" fixing this issue: - Fix Issue 23552 - Function x does not override any function, but it actually does https://github.com/dlang/dmd/pull/14704 -- | ||||
December 16, 2022 [Issue 23552] Function `x` does not override any function, but it actually does | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23552 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> --- dlang/dmd pull request #14704 "Fix Issue 23552 - Function x does not override any function, but it actually does" was merged into master: - 6519d75e986a68ef19904dd5bce7d41b7829436d by RazvanN7: Fix Issue 23552 - Function x does not override any function, but it actually does https://github.com/dlang/dmd/pull/14704 -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply