title: Scala - how to get the 'type' for a field using reflection api
body: <p>I am using Scala 2.11.0-M5.</p>
  
  <p>I need to find the fields (members that are vars or vals) of a Scala class/type and for each field I need to find the class/type. </p>
  
  <p>So far I have been able to get the field members but I can't figure out how to get the member's type once I have the member.</p>
  
  <pre><code>scala&gt; class Account {
    var name: String = null;
    var accountNumber: String = null;
  }     |      |      | 
  defined class Account
  
  scala&gt; import reflect.runtime.universe._
  import reflect.runtime.universe._
  
  scala&gt; for (m &lt;- typeOf[Account].members.filter(m =&gt; !m.isMethod)) {
   |   println(m)
   |   // ??? how do I get the member's type ????
   | }
  variable accountNumber
  variable name
  </code></pre>