public interface Listener {
    void handleEvent (int);
}

void main(){
    void print(int evt){

    }
    Listener listener    = new class() Listener {
        public void handleEvent(int evt) {
            .print(evt);
        }
    };
}

-----------------------------------------------------------------------------------
x.d(20): Error: undefined identifier module x.print
x.d(20): Error: function expected before (), not module x.print of type void

Reply via email to