PingManager icon indicating copy to clipboard operation
PingManager copied to clipboard

Contextual closure type '() -> ()' expects 0 arguments, but 1 was used in closure body

Open ghost opened this issue 4 years ago • 0 comments

    PingManager.shared.setup {
        $0.timeout = timeout
        $0.pingPeriod = period
        $0.startPing()
    }
    
    编辑器提示如上错误,闭包不能用,swift 5.0 xcode 12.3

ghost avatar Mar 05 '21 03:03 ghost