I have a type variable Dynamicand I know for sure that one of its fields, let's call it a, is actually an array. But when I write
var d : Dynamic = getDynamic();
for (t in d.a) {
}
I get a compilation error in the second line:
You cannot iterate over a dynamic value, please specify Iterator or Iterable
How can I make this compile?
Vadim
source
share