This is simply wrong. When the closure will be called, ``$container->values[$id]`` will contain the extending closure, not the original one.

and if the service itself is set after extending, it will overwrite the extended definition anyway