title: After declaring computed variable, compiler started complaining class has no initializer
body: <p>I have created a class inherits <code>UITableViewCell</code>:</p>
  
  <pre><code>class MyCell: UITableViewCell {
    override func awakeFromNib() {
          super.awakeFromNib()
          // Initialization code
      }
  
      override func setSelected(_ selected: Bool, animated: Bool) {
          super.setSelected(selected, animated: animated)
  
          // Configure the view for the selected state
      }
  }
  </code></pre>
  
  <p>There is no compiler error. Then, I declared a computed variable:</p>
  
  <pre><code>class MyCell: UITableViewCell {
     var student: Student{
         willSet {...}
     }
     ...
  }
  </code></pre>
  
  <p>Now, compiler start complaining <code>Class 'MyCell' has no initializers</code>. Then, I defined an empty initialier:</p>
  
  <pre><code>class MyCell: UITableViewCell {
         init(){}
  
         var student: Student{
             willSet {...}
         }
         ...
      }
  </code></pre>
  
  <p>The error still exist. Why after declared computed variable, compiler starts complaining that error &amp; how to get rid of that error?</p>