This is fixed for the next release: https://feedback.objo.dev/bug/401
Thanks for reporting this. The example in the docs was missing an important detail: For Each key As String In dict.Keys assumes the dictionary is declared as something like Dictionary(Of String, ...).
If the dictionary is declared as plain Dictionary, the compiler cannot know the key type from Keys. In that case, use:
For Each key As Object In dicData.Keys
Print(key.ToString())
Next
or declare the dictionary with a key type:
Var dicData As Dictionary(Of String, Object) = {}
I’ve fixed the compiler diagnostic so it no longer reports the collection element type as Array in this situation, and I’ve updated the docs to make the typed-dictionary requirement clearer in the next release.