' __'不能转换为' StringLiteralConvertible'

时间:2015-07-15 03:28:26

标签: ios swift

我不明白为什么这段代码会产生错误:

Alamofire.request(Alamofire.Method.PATCH, "https://example.herokuapp.com/", parameters: [
            "format":"json",
            "todo":
                ["isComplete":todo?.isComplete],
            "id": todo?.id // <--- ERROR: is not convertible to 'StringLiteralConvertible'
            ]
        )

enter image description here

0 个答案:

没有答案