It looks to me like resultArray.append()
is treating the tuple a little bit like a variadic parameter, and trying to expand the tuple to match its own arguments. It’s complaining about your second parameter because it’s only expecting one. I haven’t seen this behavior for Array.append()
documented anywhere, so I would say it’s a bug in Swift.
Using the appending operator +=
doesn’t seem to have that issue:
resultArray += tempDict