'Missing argument for parameter 'error' in call' Swift compiler bug?


When using NSKeyedUnarchiver API with Swift, see image 1, the error occurs when compiling

It says missing argument for parameter 'error' in call, and the method definition doesn't has error parameter


When downcast it like image 2,

It compiles and runs fine.



Is it a swift compiler bug?

By the way, where should me report this bug?

Which version of Xcode are you using?

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
'Missing argument for parameter 'error' in call' Swift compiler bug?
 
 
Q