I had this error several times now and I resorted to different workarounds, but I\'m really curious why it happens. Basic scenario is following:
class SomeCl
Try that :
class SomeClass { var coreDataStuff = CoreDataStuff! lazy var somethingElse: SomethingElse = SomethingElse(coreDataStuff: self.coreDataStuff) }
It is important to precise the type of your lazy var and to add self. to the argument you pass
self.