It seems dictionary variables cannot accept array values:
var dict: [String: Any]? = nil
dict = [ // E: No matching overload
"boolean": true, // H: parameter 1 is "<array literal>" should be "Tuple2<String,Any>"
"integer": 42,
"stringArray": [
"Example string 1",
"Example string 2"
]
]
print(dict)
The same dictionary works fine as constant.