Every closed immersion is a finite morphism. Therefore, restriction of a finite morphism to a closed subset is always a finite morphism itself. Can you give an example of quasi-projective varieties $X\subset Y$, $Z$ and a finite morphism $f:Y\to Z$ such that restriction $f:X\to f(X)$ is not finite? Same with Y -- projective?


PS. Sorry the [original version](https://mathoverflow.net/questions/17658/example-of-inclusion-which-is-not-a-finite-morphism) of this question was hilariously stupid.



Example of restriction of a finite morphism which is not finite
Almost the same counterexample works. Take any non-closed (so non-finite) open immersion $U\hookrightarrow Z$. Then the trivial double cover $Z\sqcup Z\to Z$ is finite, but the restriction to $U\sqcup Z\to Z$ is not (but is still surjective).


