Am getting this issue with this struct, on the line which reads \"lazy var townSize: Size ={\" and can\'t figure out what the issue is.
struct Town {
You incorrectly declared lazy var it should be declared like this
lazy var townSize: Size = { switch self.population { case 0...10000: return Size.Small case 10001...100000: return Size.Medium default: return Size.Large } }()