Swift - Value of type '(NSObject) -> () -> NotesListViewController' has no member stack?
<p>I write my self CoreDataStack file, when i compile the project, get a warning "Swift - Value of type '(NSObject) -> () -> NotesListViewController' has no member stack?"</p>

<pre><code>class NotesListViewController: UITableViewController, NSFetchedResultsControllerDelegate {

    var stack: CoreDataStack = CoreDataStack(modelName:"UnCloudNotesDataModel", storeName:"UnCloudNotes")

    lazy var notes: NSFetchedResultsController = { (_) -&gt; NSFetchedResultsController&lt;NSFetchRequestResult&gt; in
        var request = NSFetchRequest&lt;NSFetchRequestResult&gt;(entityName: "Note")
        request.sortDescriptors = [NSSortDescriptor(key: "dateCreated", ascending: false)]
        var notes = NSFetchedResultsController(fetchRequest: request, managedObjectContext: self.stack.context, sectionNameKeyPath: nil, cacheName: nil)
        notes.delegate = self
        return notes
    }()
</code></pre>