title: Swift equal function dont work
body: <p>i want to check equality between objects but i get an error. Error is within the code.</p>
  
  <pre><code>class Test {
      var key: String
  
      init(nameParam: String) {
          self.key = nameParam
      }
  
  
      func ==(other: Test) -&gt; Bool {
          return other.key == self.key
      }
  
  }
  
  var t1 = Test(nameParam: "Test")
  var t2 = Test(nameParam: "Test1")
  
  if(t1 == t2) { // Error: 'Test' is not convertible to 'MirrorDisposition'
      println("...")
  }
  </code></pre>