Corollary (Morera's theorem)

Let $U$ be a domain.

If $f:U\to \C$ is continuous and $\oint_γ f=0$ for all closed curves $γ$ in $U$, then $f$ is holomorphic on $U$.

Proof