The declaration of value
below
import Foundation
class AAA: NSObject {
func test2() {
self.dynamicType
}
}
extension AAA {
stat
I solved this issue by moving the static declaration into the new struct I defined in the extension.
So instead of this:
extension NSOperationQueue {
static var parsingQueue : NSOperationQueue = {
let queue = NSOperationQueue()
queue.maxConcurrentOperationCount = 1
return queue
}()
}
I have this:
extension NSOperationQueue {
struct Shared {
static var parsingQueue : NSOperationQueue = {
let queue = NSOperationQueue()
queue.maxConcurrentOperationCount = 1
return queue
}()
}
}