title: Declaration never used - but it is?
body: <p>I am writing in Scala and within this <em>if</em> statement I have a <em>for</em> loop and I initialized <em>i=0</em> and used <em>i</em> in the <em>for</em> loop. It is telling me that declaration is not used, but I am using it in the <em>for</em> loop. <em>top</em> is always equal to 5 also.</p>
  <pre><code>else {
      var i = 0
      for (i &lt;- 0 until (top))
  </code></pre>