Jump to page: 1 2
Thread overview
[Issue 2525] Can't use `override` when implementing abstract base class's interface function
[Issue 2525] override of function from abstract base class's interface
Jul 18, 2014
Denis Shelomovskij
Jul 18, 2014
Denis Shelomovskij
Jul 18, 2014
Denis Shelomovskij
Jul 18, 2014
Denis Shelomovskij
Nov 25, 2014
Andrej Mitrovic
Dec 07, 2014
Ben Grabham
Nov 13, 2015
Alex Parrill
Aug 12, 2016
b2.temp@gmx.com
Aug 12, 2016
Lodovico Giaretta
Jul 09, 2017
Martin Nowak
Jul 09, 2017
Martin Nowak
Jan 09, 2020
MichaelZ
Feb 25, 2021
Dlang Bot
Dec 17, 2022
Iain Buclaw
Jan 29, 2023
Dlang Bot
July 18, 2014
https://issues.dlang.org/show_bug.cgi?id=2525

Denis Shelomovskij <verylonglogin.reg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |verylonglogin.reg@gmail.com

--
July 18, 2014
https://issues.dlang.org/show_bug.cgi?id=2525

Denis Shelomovskij <verylonglogin.reg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|override of function from   |Can't use `override` when
                   |abstract base class's       |implementing abstract base
                   |interface                   |class's interface function
                 OS|Linux                       |All

--
July 18, 2014
https://issues.dlang.org/show_bug.cgi?id=2525

--- Comment #6 from Denis Shelomovskij <verylonglogin.reg@gmail.com> ---
*** Issue 10699 has been marked as a duplicate of this issue. ***

--
July 18, 2014
https://issues.dlang.org/show_bug.cgi?id=2525

--- Comment #7 from Denis Shelomovskij <verylonglogin.reg@gmail.com> ---
*** Issue 12329 has been marked as a duplicate of this issue. ***

--
November 25, 2014
https://issues.dlang.org/show_bug.cgi?id=2525

--- Comment #8 from Andrej Mitrovic <andrej.mitrovich@gmail.com> ---
Shame on you, Andrej Mitrovic!

I totally support this now, perhaps not so much 'override' as wanting a new 'implements' keyword. But the distinction is so pale, and the real benefit is really *knowing* that a method is actually part of a base class / interface API, so I'm now definitely in huge favor of allowing (and perhaps even *requiring*) override for implementing keywords.

--
December 07, 2014
https://issues.dlang.org/show_bug.cgi?id=2525

Ben Grabham <dlang@chillichef.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dlang@chillichef.com

--- Comment #9 from Ben Grabham <dlang@chillichef.com> ---
I just hit this bug too and I wasn't so fortunate as to realise that classes that implement an interface need override but classes that extend and abstract class which implements an interface must not have the "override" attribute. Please make it consistent!

--
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=2525

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|D1 & D2                     |D2

--
November 13, 2015
https://issues.dlang.org/show_bug.cgi?id=2525

Alex Parrill <initrd.gz@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |initrd.gz@gmail.com

--- Comment #10 from Alex Parrill <initrd.gz@gmail.com> ---
Just ran into this, so I'll bump it.

Note that if, in the OP's code, you change the abstract class A to an empty interface, the code successfully compiles.

--
August 12, 2016
https://issues.dlang.org/show_bug.cgi?id=2525

b2.temp@gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lodovico@giaretart.net

--- Comment #11 from b2.temp@gmx.com ---
*** Issue 16318 has been marked as a duplicate of this issue. ***

--
August 12, 2016
https://issues.dlang.org/show_bug.cgi?id=2525

--- Comment #12 from Lodovico Giaretta <lodovico@giaretart.net> ---
Any news on this? People periodically hits this issue and finds it very strange...

--
« First   ‹ Prev
1 2