Skip to content

[TS] Fix access before initialization in codegen#4709

Merged
clockwork-labs-bot merged 4 commits intomasterfrom
noa/ts-codegen-fix-access-b4-init
Apr 11, 2026
Merged

[TS] Fix access before initialization in codegen#4709
clockwork-labs-bot merged 4 commits intomasterfrom
noa/ts-codegen-fix-access-b4-init

Conversation

@coolreader18
Copy link
Copy Markdown
Collaborator

Description of Changes

Fixes #4584. Now we check, fully recursively, whether compound AlgebraicTypeUses contain a ref.

Expected complexity level and risk

1

Testing

  • Added a test to ensure correct codegen

Copy link
Copy Markdown
Contributor

@cloutiertyler cloutiertyler left a comment

Choose a reason for hiding this comment

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

This makes sense to me. Thanks for catching it.

@coolreader18 coolreader18 added this pull request to the merge queue Apr 8, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 8, 2026
@clockwork-labs-bot clockwork-labs-bot added this pull request to the merge queue Apr 9, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 9, 2026
@bfops bfops added this pull request to the merge queue Apr 9, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 9, 2026
@bfops
Copy link
Copy Markdown
Collaborator

bfops commented Apr 9, 2026

I think the failures might be real? We might need to merge in master and update some snapshots or something.

@clockwork-labs-bot clockwork-labs-bot added this pull request to the merge queue Apr 11, 2026
Merged via the queue into master with commit fbec276 Apr 11, 2026
32 of 34 checks passed
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.

TypeScript codegen: forward reference in types.ts causes ReferenceError at runtime

4 participants