title: Scala: value :: is not a member of Int
body: <p>I recently started using scala and I can't make anything of the error messages. For the following code I get the stated message(using eclipse):</p>
  
  <pre><code>def helper: Int =&gt; List[Int] = x =&gt;  x match  {
      case 2 =&gt; 2::1
      ...
  }
  </code></pre>
  
  <p>I can fix it by using List(2,1), but souldn't that be the same thing as 2::1?
  I have similar problems where the List(...) approach would be harder to use, so I really want to know where my thinking mistake is.</p>