title: Wrong usage of Classtag in Scala?
body: <pre><code>import scala.reflect.ClassTag
  
  
  class IntStorage {
    var variable: Int = 5
  }
  
  
  class testing[T : ClassTag] {
    var example = Array.ofDim[T](10, 10)
    def testFunc(): Int = example(0)(0).variable
  }
  </code></pre>
  <p>Error: value variable is not a member of T</p>
  <p>I do not understand why I get this error, even though I use a Classtag.</p>