[Issue 19767] Classes that inherit from an interface can override static interface methods

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19767

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P1  |P3

--


[Issue 19767] Classes that inherit from an interface can override static interface methods

2020-03-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19767

Basile-z  changed:

   What|Removed |Added

 CC|b2.t...@gmx.com |

--


[Issue 19767] Classes that inherit from an interface can override static interface methods

2019-03-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19767

Andrei Alexandrescu  changed:

   What|Removed |Added

 CC||and...@erdani.com
   Assignee|nob...@puremagic.com|edi33...@gmail.com

--- Comment #2 from Andrei Alexandrescu  ---
Yah, this should be clarified in the spec. Thanks Edi!

--


[Issue 19767] Classes that inherit from an interface can override static interface methods

2019-03-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19767

Basile-z  changed:

   What|Removed |Added

 CC||b2.t...@gmx.com
   Hardware|x86_64  |All
 OS|Linux   |All
   Severity|enhancement |normal

--- Comment #1 from Basile-z  ---
I don't know if the report is valid.

1. You can still call the interface version of foo, e.g `(new C).D.foo();`
2. C.foo() is not virtual and does not call the inherited D.foo().

Because 2, the specs are respected. It's not an override but rather a case of 
hijacking.

--