Skip to content

Conversation

@cirras
Copy link
Collaborator

@cirras cirras commented May 8, 2025

This PR improves name resolution on routine references in:

  • assignment to inline var/const declarations
  • assignment to standard var declarations
  • assignment to standard typed const declarations
  • constant arrays
    • This required improvements to type resolution for constant array expressions.
      Multidimensional constant arrays are especially improved, as their subarrays couldn't ever resolve properly before.

@cirras cirras requested a review from fourls May 8, 2025 03:14
@cirras cirras force-pushed the routine_references_are_annoying branch from 638bb33 to 056c55b Compare May 8, 2025 03:47
Copy link
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

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

I'm a little confused about how this code will resolve declarations where the type is inferred rather than notated.

@cirras cirras requested a review from fourls May 8, 2025 03:57
Copy link
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

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

Looks good, I just think we should add a comment to this code - since there's a little bit of context that's unclear from just reading.

@cirras cirras force-pushed the routine_references_are_annoying branch from 056c55b to ac32d9c Compare May 8, 2025 04:15
@cirras cirras requested a review from fourls May 8, 2025 04:15
Copy link
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

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

Looks good!

@fourls fourls merged commit 4c664d9 into master May 8, 2025
4 checks passed
@cirras cirras deleted the routine_references_are_annoying branch May 8, 2025 04:25
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.

3 participants