Class parameter variable assignments
<p>I'm having a difficult time understanding why varone, vartwo, and varthree are getting "not found" errors: "not found: value "</p>

<pre><code>// The following is being added to a list of type Foo
Foo(
    varone = "stringvalue",
    vartwo = "stringvalue",
    varthree = true
)
</code></pre>

<p>I'm defining Foo as:</p>

<pre><code>class Foo(varone : String, vartwo : String, varthree : Boolean)
{

}
</code></pre>

<p>I thought in Scala would take my class parameters and make fields of them? </p>

<p>I'm coming from a C++ background and assignments in variable constructors seem strange, but that's what the example I'm following is hinting I do. I might just revert to giving Foo a constructor and making my assignments there, but I'd like to understand this way too.</p>