After upgrading my project to Swift 3, the following initializer no longer builds:
1 var fetchedResultsController: NSFetchedResultsController {
2 if _fetchedResultsController != nil {
3 return _fetchedResultsController!
4 }
5
6 let fetchRequest: NSFetchRequest = MyEntity.fetchRequest()
...
The error was on line 1:
"Unable to infer complex closure return type; add explicit type to disambiguate"
Line 6 gives a further error:
"Generic parameter 'MyEntity' could not be inferred"