Let $f(x+iy)=u(x,y)+iv(x,y)$ where $u,v$ are real. I have a theorem that say that $f$ is holomorphic at $z_0=x_0+iy_0$ then $u,v$ are $\mathcal C^\infty$ at $z_0$ and harmonic at $z_0$. Let
$$f(z)=\begin{cases}z^2\sin\frac{1}{|z|}&z\neq 0\\ 0&otherwise.\end{cases}$$
We have that $f$ is holomorphic at $z=0$, but $\Delta u(x_0,y_0)\neq 0$. How is it possible ? Is my theorem wrong ?
For information, we have that $$u(x,y)=\begin{cases}(x^2-y^2)\sin \frac{1}{\sqrt{x^2+y^2}}&(x,y)\neq (0,0)\\ 0&otherwise\end{cases}$$
$$v(x,y)=\begin{cases}2xy\sin \frac{1}{\sqrt{x^2+y^2}}&(x,y)\neq (0,0)\\ 0&otherwise\end{cases}.$$