Technically, AnyRef also defined getClass. I'm not sure we'll ever resolve to its getClass, and it's not really related to this bug, but after this fix it looks like we'll no longer do the more specific typing if we somehow get AnyRef's getClass.