title: VB.NET boolean doesn't get its default value in loop?
body: <p>I have something like this:</p>
  
  <pre><code>For i = 1 To 4
          Dim x As Boolean
          If i &lt; 3 Then x = True
          Console.WriteLine(x)
  Next
  </code></pre>
  
  <p>Gives me:
  True
  True
  True
  True</p>
  
  <p>and this</p>
  
  <pre><code>For i = 1 To 4
          Dim x As Boolean = False
          If i &lt; 3 Then x = True
          Console.WriteLine(x)
  Next
  </code></pre>
  
  <p>Gives me:
  True
  True
  False
  False</p>
  
  <p>Aren't they both supposed to give me the second result? <a href="http://msdn.microsoft.com/en-us/library/wts33hb3%28v=vs.100%29.aspx" rel="nofollow noreferrer" title="the MSDN article">The MSDN article</a> says that The default value of Boolean is False.</p>
  
  <p>Is it a bug or am I missing something?</p>