I'm trying to append multiple strings to an array. This code works as expected:
var myArray: [String] = []
myArray += ["dog", "cat"]
This gives me an error:
var myArray: [String]! = []
myArray += ["dog", "cat"] //error: '[String]!' is not identical to 'UInt8'
Is this a bug, or is concatenating to an optional Array not supposed to work?