TRASHCLASS compile errors when overriding custom events

It would be great if it could make it into 4.10.1