Skip to content

Bugfixes 1-7-2026#934

Merged
SchoolyB merged 3 commits intomainfrom
bugfixes/1-7-2026
Jan 7, 2026
Merged

Bugfixes 1-7-2026#934
SchoolyB merged 3 commits intomainfrom
bugfixes/1-7-2026

Conversation

@SchoolyB
Copy link
Copy Markdown
Owner

@SchoolyB SchoolyB commented Jan 7, 2026

Summary

Collection of bug fixes from January 7, 2026.

Included Fixes

fix(interpreter): allow arbitrary precision arithmetic for int/uint types (#917)

  • The int and uint types are backed by big.Int but arithmetic operations were incorrectly capping at i64/u64 bounds
  • Now these types have no overflow limits, matching their arbitrary precision storage

fix(typechecker): show correct error for invalid sized types with using directive (#914)

  • When a using directive was present, undefined types like i512 showed "type mismatch" instead of "undefined type"
  • Added check to detect invalid sized type patterns and reject them before deferring to module resolution

fix(parser): error on invalid operators in string interpolation (#916)

  • String interpolation was silently dropping expressions with invalid operators (&, |, ^)
  • Now checks for lexer errors and unconsumed tokens after parsing interpolated expressions

Test plan

  • All individual PRs tested and merged
  • All existing tests pass

…ypes (#917) (#931)

The int and uint types are backed by big.Int but arithmetic operations
were incorrectly capping at i64/u64 bounds. Now these types have no
overflow limits, matching their arbitrary precision storage.
…ng directive (#914) (#932)

When a `using` directive was present, undefined types like `i512` showed
"type mismatch" instead of "undefined type". Added check to detect
invalid sized type patterns (i<N>, u<N>, f<N>) and reject them before
deferring to module resolution.
#933)

String interpolation was silently dropping expressions with invalid
operators (&, |, ^), returning only the first operand. Now checks for
lexer errors and unconsumed tokens after parsing interpolated expressions.
@SchoolyB SchoolyB merged commit 59749da into main Jan 7, 2026
5 checks passed
@SchoolyB SchoolyB deleted the bugfixes/1-7-2026 branch January 7, 2026 20:04
SchoolyB added a commit that referenced this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant