Summary: Interface Inheritance Problem
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Mandeep Singh Brar <> 2010-12-12 
09:32:28 PST ---
The following code does not compile.

import std.stdio;
interface A {
    public void a(int l);
class ACl:A {
    public void a(int l) {
        writeln("Hello a");

interface B: public A {
    public void a(string l, int k);

class BCl: ACl, B {
    public void a(string l, int k) {
        writeln("Hello B.a", l, k);

int main() {
    B b = new BCl();
    return 0;

However changing the second line of main() to (cast(A)b).a(1) makes it work.

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

Reply via email to