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
you have the wrong closure syntax
test("hello", {(name: String) in println("callback") })
or
test("hello", { println("callback: \($0)") })
test("hello") {(name: String) in println("callback") }
test("hello") { println("callback: \($0)") }