It seems like I have a problem with something that should not be so ... But I would like to ask for help.
There are a few explanations here on the stack that I am not getting.
Having two simple classes where one refers to the other as shown below:
class User { lazy var name: String = "" lazy var age: Int = 0 init (name: String, age: Int) { self.name = name self.age = age } } class MyOwn { let myUser: User = User(name: "John", age: 100) var life = myUser.age
I get a commented out compilation error. Can someone please tell me what should I do to resolve this matter?
Many thanks to any good person for their help!
source share