Implicit self in @escaping Closures when Reference Cycles are Unlikely to Occur Swift 5.3

前端 未结 0 1136
闹比i
闹比i 2021-01-12 16:29

With SE-0269 we won’t need to use explicit anymore in the below case for reference type.

class Test {
    var x = 0
    func execute(_ work: @escaping () ->         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题