Let $X, Y$ be topological spaces and let $D \subset X$ be dense. Suppose $f : D \to Y$ is continuous. Then $f : X \to Y$ is continuous on all of $X$.
The above stated assertion does clearly not hold in general. However, I am curious if the assertion holds under certain conditions on the spaces $X, Y$ or function $f$, or whether there are similar results.
Any comment is appreciated.