Commit 9ce6368
committed
fix(wasm): resolve E0308 so bet-wasm (and the whole Rust workspace) builds
The default-return scaffold's `match ret_ty` had inconsistent arm types: the
I32 arm was a statement block (`()`), while I64/F32/F64 were bare
`func.instruction(...)` expressions (`&mut Function`). The match is purely
side-effecting (emits a default-return instruction; its value is unused), so
all arms are now `()` statement blocks.
Verified: `cargo test -p bet-wasm` → 8 passed; `cargo build --workspace` → exit
0 (every Rust crate now compiles). README status refreshed (wasm: paused →
builds; still scaffolding pending AST lowering).
Scope: this is the build-unblock only. Raising bet-eval/bet-codegen toward
parity with the authoritative Racket interpreter remains follow-on work.
https://claude.ai/code/session_01QGi8GND5yNWgDyfReVEPYs1 parent da8a232 commit 9ce6368
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | | - | |
556 | | - | |
557 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
558 | 564 | | |
559 | 565 | | |
560 | 566 | | |
| |||
0 commit comments