title: Function declared with a parameter of type Dictionary shows another parameter type
body: <p>I'm having a problem, and I can't find the solution, I have an extension of an object <code>Article</code>, which has a func which creates the object with the data contained in a dictionary passed as a parameter to the func, this is the code:</p>
  
  <pre><code>protocol EntityProtocol {
  
       mutating func createEntityWithDictionary(dictionary: Dictionary&lt;String, AnyObject&gt;)
  
  }
  
  
  extension Article: EntityProtocol {
  
    func createEntityWithDictionary(dictionary: Dictionary&lt;String, AnyObject&gt;) {
  
      var article: Article! = ModelManager.instance.insertNewEntityName("Article") as Article
  
      for (key: String, value: AnyObject) in dictionary {
  
          switch key {
  
          case kContentTypeKey:
  
              article.contentType = value as String
  
          case kEditorsPickKey:
  
              article.editorsPick = value as Bool
  
          default:
  
              println("Default")
  
          }
  
      }
  
    }
  
  }
  </code></pre>
  
  <p>Ok, so in another class, I invoke the func passing a dictionary as parameter, but when I write <code>Article.createEntityWithDictionary</code>it autocompletes the name of the method, but the type of the parameter is <code>Article</code> instead of <code>Dictionary</code>, and if I pass a dictionary as parameter XCode says "NSDictionary is not a subtype of 'Article'".</p>
  
  <p>What am I missing here?</p>