title: How to call ambiguous generic function in Swift?
body: <p>I've defined two generic functions</p>
  
  <pre><code>func job&lt;T: Comparable&gt;(x: T) {
    println("1")
  }
  
  func job&lt;T: Hashable&gt;(x: T) {
    println("2")
  }
  </code></pre>
  
  <p>and when I try to call one of them, for example with:</p>
  
  <pre><code>let myInt: Int = 1 // Explicit Int just for clarity of the example
  job(myInt)
  </code></pre>
  
  <p>of course Swift complains and throws an error<br>
  <strong>Ambiguous use of 'job'</strong><br>
  which is understandable, because it is not clear whether I want to use the <strong>Comparable</strong> one or <strong>Hashable</strong> (<strong>Int</strong> conforms to both of them)</p>
  
  <p>Is there a way I can hint the compiler which one I want to use?</p>