I was surprised when this didn't work. What's the rationale? Is there any better workaround than renaming methods?

    interface A{
        void foo();
        final void foo(int x){}
    }
    class B: A{
        void foo(){}
    }
    void main(){
        auto b = new B();
        b.foo();
        b.foo(10); // not callable using argument types (int)
    }

Reply via email to