promise キットでいくつかの promise をチェーンしようとしています。promise の型が this のような場合、構文の問題があります。promise に型があるPromise<Location>
場合にのみコンパイラ エラーが発生します。promisekit の使用は初めてです
Swift.start(host,"","").then{ result -> Void in
}.then{ obj -> Void in
println(obj)
Swift.getCurrent.then{ obj -> Void in
let payload:Dictionary<String,AnyObject> = obj as! Dictionary<String,AnyObject>
self.deviceUUID = payload["uuid"] as! String
}
}.then { obj -> Location in
println(obj)
Swift.getLocation("3333").then{ location in
self.locationUUID = location.get("uuid")
}
}