title: Expression of type list(object) doesn't conform to expected list scala
body: <p>Supposedly I have the following</p>
  
  <pre><code>case class test {
                     a:string
                     b: string
                     c: Int
                     d: Int }
  
  
  var temp = List(test("lol","lel",1,2))
  var total = List(test)
  
  total = total:::temp //this doesn't work because temp is of type [test] while total is of type [test.type]
  </code></pre>
  
  <p>I do not understand the difference.
  The reason I want to use this is that I want to have a running list where elements will be conditionally added in a loop.
  So in this instance, <code>total</code> should initially an empty list which takes <code>test</code> objects. How do I do this?</p>
  
  <p>Any feedback is appreciated!</p>