fix Issue 10007 - function overrides but is not covariant