title: Swift - Trailing Closure Syntax
body: <p>I'm diving into Swift lang by Apple and have some problems using the trailing closure syntax, example:</p>
  
  <pre><code>func test(txt: String, resolve: (name: String) -&gt; Void) {
     resolve(name: "Dodo")
  }
  
  // Errors here complaining on resolve param
  test("hello", (name: String) {
     println("callback")
  })
  </code></pre>
  
  <p>How to fix it?</p>