Skip to content

fix: annotate let x = -1 with : number type#141

Merged
cs01 merged 1 commit intomainfrom
fix/annotate-neg1-variables
Mar 9, 2026
Merged

fix: annotate let x = -1 with : number type#141
cs01 merged 1 commit intomainfrom
fix/annotate-neg1-variables

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Mar 9, 2026

Summary

  • 5 variables initialized to -1 were missing : number type annotations
  • Native compiler can mistype these as integer instead of float, causing silent wrong behavior
  • Files: parser-native/transformer.ts (2), semantic/type-assertion-checker.ts (2), codegen/expressions/access/member.ts (1)

Test plan

  • All 436 tests pass
  • verify:quick passes (tests + stage 0/1 self-hosting)

@cs01 cs01 merged commit a73b264 into main Mar 9, 2026
12 checks passed
@cs01 cs01 deleted the fix/annotate-neg1-variables branch March 9, 2026 03:57
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