This might be very silly to ask, but somehow this sequence of results are leading me to this wrong result. I am dealing with complex analysis and the mistake I am making might be because I am using some results from real analysis.
If a function, $f(z)$, is continuous in simply connected domain, then it will be Riemann integrable and hence its antiderivitive, $F(z)$, will exist and moreover the antiderivative will be differentiable in the domain.
This implies that $F(Z)$ is analytic since it is differentiable in the neighborhood of all points.
Which also means that it is infinitely times differentiable.
And hence even $f(z)$ is infinitely times differentiable and hence, $f(z)$ is also analytic.