Yes, this is expected behavior.
You will have to define testmodule.baz() to not create a new function, but extend the existing function with a new method.
Yes, this is expected behavior.
You will have to define testmodule.baz() to not create a new function, but extend the existing function with a new method.