我该如何解决? 我只是将我的应用程序转换为使用Swift 3.0的Swift 4.2。 我使用的是ObjectMapper(3.4.2)。
class Discuess<author:PostAuthor,reply_to:Reply_To>: Mappable {
var author: PostAuthor? = nil
var reply_to: Reply_To? = nil
required init?(map: Map) {
}
func mapping(map: Map) {
author <- map["author"] //Left side of mutating operator has immutable type 'author.Type'
reply_to <- map["reply_to"] //Left side of mutating operator has immutable type 'reply_to.Type'
}
}