What happens if the windings of a transformer are connected to each other?
What you described sounds like one of the two transformer-as-inductor connections shown below and in How do I use a transformer as an inductor?.

It could also be an autotransformer boost or buck connection shown below.

Dots designate start of winding.


.