Let $(f_n)$ be a sequence of functions $f_n:[a,b]\to\mathbb{R}$, all of which are piecewise continuous. Does $f_n\rightrightarrows f$ imply that $f$ is piecewise continuous?
EDIT:
I wrote a proof that $f$ must be piecewise continuous. However, this proof must be incorrect according to Jahan's answer. Where's the problem?
Suppose $f$ is not piecewise continuous. Then the collection $X$ of points $x\in[a,b]$ at which $f$ is discontinuous is infinite. For each $x_0\in X$ there exists $\epsilon>0$ such that in every neighborhood of $x_0$ there is an $x$ satisfying $|f(x_0)-f(x)|\ge \epsilon$. Suppose $f_n$ is continuous at $x_0$. Then there exists $\delta>0$ such that when $|x-x_0|<\delta$ we have $|f_n(x)-f_n(x_0)|<\epsilon/3$. Since $f_n\rightrightarrows f$, there is some $N$ such that for all $n\ge N$ and all $x\in[a,b]$ we have $|f_n(x)-f(x)|<\epsilon/3$. Now, for $n\ge N$ we have that $$\epsilon\le |f(x)-f(x_0)|\le |f(x)-f_n(x)|+|f_n(x)-f_n(x_0)|+|f_n(x_0)-f(x_0)|<\epsilon.$$ This is a contradiction. Therefore, for each $x_0$ in $X$, $f_n$ is not continuous at $x_0$ and so its set of discontinuity points is infinite. Therefore $f$ must be piecewise continuous, else some function in the sequence is not piecewise continuous.