Generalization of a theorem of Gonchar