J
Jake Forson
See section 12.3.5 of ECMA-334.
Thanks. I can now look into this myself. Case closed.
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-334.pdf
In your case, the compiler wins - it's not required to do the level of
analysis to prove that the two if statements in your example are mutually
exclusive, so your two if statements don't constitute definite assignment
to the variable according to the rules.
Thanks. I can now look into this myself. Case closed.