Dictionary variables with array values do not work

(Marko Havu) #1

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"

The same dictionary works fine as constant.

(Marko Havu) #2

Toffee v2 does not seem to have this problem.

1 Like
(RemObjects) #3

Thanks, logged as bugs://82184

(RemObjects) #4

bugs://82184 got closed with status fixed.