is this a dmd bug ?
Long Chang
changedalone at gmail.com
Tue Nov 24 03:55:44 PST 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20091124/dd0b8359/attachment.html>
More information about the Digitalmars-d
mailing list