How can I override a property ?

Test code:
----------------------------
class A
{
    @property bool foo { return false; }
    void myFunc() { ... }
}

class B : A
{
    override bool foo { return true; } // error
    override void myFunc() { ... }
}
----------------------------
Output error:
function B.foo return type inference is not supported if may override base class function.

Any ideas ?

Reply via email to