In the Good Old Summertime
(1949)

Veronica (Judy Garland) tells Andy (Van Johnson) she's in love with him, not her penpal and Andy reveals he was her penpal all along.
They marry and the closing credits show them walking with their daughter (played by a very young Liza Minnelli).

Thanks Erin G!