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