Fix PR4834, a tricky case where the inliner would resolve an