我正在尝试将一些代码从swift 2转换为swift 3,一切都很顺利,直到我得到这部分代码:
var fetchedResultsController: NSFetchedResultsController<NSFetchRequestResult>{
if _fetchedResultsController != nil {
return _fetchedResultsController!
}
Xcode会出现错误:
Cannot convert return expression of type 'NSFetchedResultsController' to return type
'NSFetchedResultsController<NSFetchRequestResult>'
我对如何修复它感到有点难过