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 implemented Of course, both of these can't be true at the same time :o). The original program should compile and run properly.
Looks like at dup of bug 3023.
Ha! Compiler bugs are not usually this silly. Applies to D1 as well. This also fixes bug 3023. I suspect it probably fixes some other bugs too -- I'm amazed multiple inheritance has worked at all. class.c, line 1198. // Skip if b has already appeared for (int k = 0; k < i; k++) { - if (b == interfaces[i]) + if (b == interfaces[k]) goto Lcontinue; }
*** Issue 3023 has been marked as a duplicate of this issue. ***
I wonder you (Andrei) don't search for existing bugs instead of blindly creating new ones =( If you want to mark all TDPL bugs by prefixing [tldp] to the subject, you can edit the old bug's title. I'm saying this because I saw several bugs which were duplicates of old ones.
(In reply to comment #4) > I wonder you (Andrei) don't search for existing bugs instead of blindly > creating new ones =( > > If you want to mark all TDPL bugs by prefixing [tldp] to the subject, you can > edit the old bug's title. > > I'm saying this because I saw several bugs which were duplicates of old ones. I'll try to look harder. My problem is that I never know what keywords to look for.
Looks like bug 2252 might be the same thing too.
SVN commit: http://www.dsource.org/projects/dmd/changeset/262
Fixed dmd 1.053 and 2.037
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル