I have a variable of type Dynamic
and I know for sure one of its fields, lets call it a
, actually is an array. But when I'm writing
var d : Dynamic = getDynamic();
for (t in d.a) {
}
I get a compilation error on line two:
You can't iterate on a Dynamic value, please specify Iterator or Iterable
How can I make this compilable?
[0, "Second element", ["Nested array here!"], "another string"]
? – Gasperoni