After bumping to SwiftLint 0.16.0, I'm getting a compiler_protocol_init when using NSNumber(integerLiteral:) (or any NSNumber literal initialiser).
I have to use NSNumber due to some Objective-C code (a method called from swift code which is taking an array of NSNumber).
Since there's no literal to create a NSNumber in swift (is there one?), I think that's a false positive 馃槵
You can use a number literal to create an NSNumber instance as follows:
let number: NSNumber = 10
// or
let number = 10 as NSNumber
Didn't though about this. Thanks!
Most helpful comment
You can use a number literal to create an
NSNumberinstance as follows: