TRASHCLASS compile errors when overriding custom events

We have also encountered this problem and moving to 4.10 has not fixed this issue for us