Skip to content

fix: propagate resolvedtype for global variables#167

Merged
cs01 merged 1 commit intomainfrom
fix/global-resolved-type-propagation
Mar 10, 2026
Merged

fix: propagate resolvedtype for global variables#167
cs01 merged 1 commit intomainfrom
fix/global-resolved-type-propagation

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Mar 10, 2026

Summary

  • Adds setResolvedType in the catch-all defineVariable path of generateGlobalVariableDeclarations
  • Global variables that reach the catch-all (strings, numbers, booleans, regex, etc.) now have cached type info
  • Uses declaredType (via parseTypeString) when available, falls back to expression type inference

Test plan

  • 444/444 node tests pass
  • 444/444 native tests pass
  • Self-hosting chain passes (--quick)

🤖 Generated with Claude Code

…ariable path

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cs01 cs01 merged commit 88d0ca6 into main Mar 10, 2026
12 checks passed
@cs01 cs01 deleted the fix/global-resolved-type-propagation branch March 12, 2026 05:35
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.

1 participant