how about this case:

public interface Listener {
    void handleEvent (int);
}

class Test{
    this(){
        Listener listener    = new class() Listener {
            public void handleEvent(int evt) {
                toString(evt);
            }
        };
    }

    void toString(int evt){

    }
}

void main(){

}

---------------------------------------
x.d(17): Error: function object.Object.toString () does not match parameter
types (int)
x.d(17): Error: expected 0 arguments, not 1 for non-variadic function type
char[]()

Reply via email to