The following used to work in Swift 1.2:
var recordSettings = [ AVFormatIDKey: kAudioFormatMPEG4AAC, AVEncoderAudioQualityKey : AVAudioQuality.Max.ra
I also got this error message trying to initialise an array of optionals with nil:
var eggs : [Egg] = Array(count: 10, repeatedValue: nil)
Expression Type 'Array' is ambiguous without more context.
Changing [Egg] to [Egg?] fixed the error.
[Egg]
[Egg?]