title: Swift Viewcontroller.type does not have a member named simpleClass
body: <p>I am new to swift, wrote a class as below and I get an error as</p>
  
  <blockquote>
    <p><code>Viewcontroller.type</code> does not have a member named <code>simpleClass</code></p>
  </blockquote>
  
  <pre><code>class CheckClass {
      var simpleInt = 0
      func checkClassMethod() -&gt; String {
          var simpleString = "The value of Integer is \(simpleInt)"
          return simpleString
      }
  }
  var simpleClass = CheckClass()
  simpleClass.simpleInt = 5
  
  var simpleString = simpleClass.checkClassMethod()
  println(simpleString)
  </code></pre>