title: Scala loop illegal start of simple pattern
body: <p>I have the following loop in Scala:</p>
  
  <pre><code>for(var i &lt;- 1 to q) {
    val Array(a, p, q) = readLine.split(" ").map(_.toInt)
    println(a ^ xs(findXorFromRoot(x, rev_binary_encoding(a).reverse, p, q)))
  }
  </code></pre>
  
  <p>However, on the first line, I get: </p>
  
  <pre><code>error: illegal start of simple pattern
  </code></pre>
  
  <p>Why is that?</p>
  
  <p>Is this not a valid loop declaration?</p>