fixed an error for scalac bench with anonymous classes