why is 4 the outcome ?

"Roelof Wobben [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
Hello,

I have this programm :

let x = 1 in let x = 2 in x + x

I was expected to see a outcome of 3 but when I run it  I see a outcome 
of 4 ,

Can someone explain to me why ??

Roelof
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.