Commit 2668084
committed
fix: resolve image_save handle passing and expression type inference
- runtime2/interpreter.rs: Use Type::Any for Call and Variable expressions
instead of defaulting to Unit, allowing proper type inference in lowering
- zrtl_image/src/lib.rs: Fix signatures for image_load and image_save
to use concrete types (i64, u64) instead of dynamic boxing
The root cause was that Call expressions were assigned Type::Unit by default,
which caused function return values to be ignored. Now they use Type::Any
which triggers proper type lookup during lowering.1 parent d5dafd5 commit 2668084
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
370 | 374 | | |
371 | 375 | | |
372 | 376 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
696 | | - | |
| 696 | + | |
| 697 | + | |
697 | 698 | | |
698 | 699 | | |
699 | 700 | | |
700 | 701 | | |
701 | | - | |
702 | | - | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
703 | 705 | | |
704 | | - | |
| 706 | + | |
705 | 707 | | |
706 | 708 | | |
707 | 709 | | |
| |||
0 commit comments