Thanks for the reply. I was mistaking something - there is no need to declare 'stop' outside the closure! That said it doesn't explain the error. The following produces the same error, which I reckon is a compiler bug:
import Foundation
class Test {
func test() {
let stop:UnsafeMutablePointerObjCBool
stop.initialize(to: false)
}
}
Topic:
Programming Languages
SubTopic:
Swift
Tags: