How does one determine (or show) that the complex function $f(z)=\lvert z \rvert^2$ does not have an antiderivative? (I'm assuming this because contour integrals along two different curves with the same end points yield different results).
Is there no antiderivative because $\lvert z \rvert^2 = zz^\star = -z^2+2z\Re \{z\}$, and $\Re\{z\}$ is non-integrable?