Fixed #4676 (Duplicated inherited member check)