fix: C backend String.indexOf/lastIndexOf compilation (issue 8)

Three bugs fixed:
- Global let bindings always typed as LuxInt; now inferred from value
- Option inner type not tracked for function params; added
  var_option_inner_types map so match extraction uses correct type
- indexOf/lastIndexOf stored ints as (void*)(intptr_t) but extraction
  expected boxed pointers; now uses lux_box_int consistently

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-19 21:10:52 -05:00
parent fd5ed53b29
commit 4e43d3d50d
2 changed files with 92 additions and 23 deletions

2
Cargo.lock generated
View File

@@ -770,7 +770,7 @@ dependencies = [
[[package]]
name = "lux"
version = "0.1.5"
version = "0.1.6"
dependencies = [
"lsp-server",
"lsp-types",