Can you elaborate on when this could actually occur?
Thanks!
Code Block swift class MyObject { var function = { () } } struct MyStruct { let obj = MyObject() func structMethod() { ... } init() { obj.function = { structMethod() } } }
The closure will capture self, which retains obj, which retains the closure, so this forms a retain cycle. Most examples like this are pretty contrived, which is why we decided to not require self. before bar() in that closure, but they can happen.