Summary: [tdpl] Incorrect assessment of overriding in
                    triangular-shaped hierarchy
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Andrei Alexandrescu <> 2009-10-08 
20:36:16 PDT ---
This code doesn't compile:

interface VisualElement {
   void draw();

interface Actor {

interface VisualActor : Actor, VisualElement {

class Sprite3 : Actor, VisualActor {
    override void draw() { }

The error message is:

Error: function test.Sprite3.draw does not override any function

If I comment out the implementation of draw I get:

Error: class test.Sprite3 interface function VisualElement.draw isn't

Of course, both of these can't be true at the same time :o). The original
program should compile and run properly.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to