Jan Potocki’s The Manuscript Found in Saragossa predates The Scarlet Letter by 35 years but I’m sure there are also earlier examples than that.
Jan Potocki’s The Manuscript Found in Saragossa predates The Scarlet Letter by 35 years but I’m sure there are also earlier examples than that.
Earliest I know is Walpole's Otranto in 1764