Legal implications for twins who accidentally switched identities in childhood.

Let's say there are twins who at some point in their childhood switched identities accidentally but continue their lives as the other person unknowingly. What legal implications would occur. Could it be fraud? Would previous documents and agreements be void ?