Time constant in an RC filter is resistance times capacitance.
With ideal components, if the resistance is zero, then the time
constant is zero, not mattter what the capacitance is. In a
practical circuit, there is always some resistance in the
conductors and in the capacitor so, if the resistance is (close to)
zero, the time constant will be (close to) zero.