Let $H$ be a Hilbert space and a closed operator $T$ defined on its domain $D(T)$ which is dense in H. Let $M$ be a closed subspace of $H$.
In Is intersection of a dense subspace and a closed subspace of a Hilbert space also Dense? it is answered "$D(T)\cap M$ can never be dense in $H$" (the statement isn't really precise, can we let$M=H$ and still holds?).
But is $D(T)\cap M$ dense in $M$?
Let $f\in M\subset H$, then there is $g\in D(T)$ such that for any $\epsilon>0$ we have $ \|f-g\|_H<\epsilon. $ But I am not sure if I can take $g$ from $D(T)\cap M$.
If not in general, when? (except for the trivial case $M\subset D(T)$) .