Avatar
class A { unowned lazy var hoge: B = B() } class B {}
5:59 PM
Playground execution failed: error: cannot convert return expression of type 'B' to return type 'B' error: MyPlayground.playground:4:32: error: cannot convert value of type 'B' to specified type 'B' unowned lazy var hoge: B = B() ^~~ error: cannot assign value of type 'B' to type 'B?' error: cannot assign value of type 'B' to type 'B?'
5:59 PM
hoge: B! だとなんか違う怒られする