Needed to add a whole new ReferenceType for this use case!
Because the for-each-loop target was defined on a namespace, it wasn't defined yet at File-validation time (Namespaces are only defined at scope linking), so the default type was unknown.
Now that we have a reference type for this particular case, the array symbol can be defined in the future, and the for-each item will be automatically known.
Needed to add a whole new ReferenceType for this use case!
Because the for-each-loop target was defined on a namespace, it wasn't defined yet at File-validation time (Namespaces are only defined at scope linking), so the default type was unknown.
Now that we have a reference type for this particular case, the array symbol can be defined in the future, and the for-each item will be automatically known.