fixes #7608 error message when trying to override a class with no parameters