Skip to content

Added ArrayDefaultTypeReferenceType for when array symbol is not defined yet#1111

Merged
TwitchBronBron merged 2 commits into
release-1.0.0from
get_default_type_of_const_array
Mar 14, 2024
Merged

Added ArrayDefaultTypeReferenceType for when array symbol is not defined yet#1111
TwitchBronBron merged 2 commits into
release-1.0.0from
get_default_type_of_const_array

Conversation

@markwpearce

Copy link
Copy Markdown
Collaborator

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.

image

@markwpearce markwpearce added this to the v1.0.0 milestone Mar 14, 2024

@TwitchBronBron TwitchBronBron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and this works great. Thanks!

@TwitchBronBron
TwitchBronBron merged commit 5ac2d15 into release-1.0.0 Mar 14, 2024
@TwitchBronBron
TwitchBronBron deleted the get_default_type_of_const_array branch March 14, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants