Proof (Morera's theorem)

The converse of the fundamental theorem of calculus implies that $f = F'$ for some holomorphic $F: U\to \C$.

By Taylor expansion, $f = F'$ is holomorphic.