Commit 7aa7c0b
fix: resolve TypeParameter(0) panic in Tuple type handling
Pass tyvec through to recursive calls in to_llvm_type's Tuple arm
instead of discarding it with &[], and return None gracefully when
elements can't be resolved. Reorder declare_native_function to check
type_has_type_params before is_tuple_return so tuples with unresolved
type params use the generic return path. Make _return_val_is_tuple
mutually exclusive with return_val_is_generic at the call site.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent b1e6288 commit 7aa7c0b
2 files changed
Lines changed: 19 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | 830 | | |
840 | 831 | | |
841 | 832 | | |
842 | 833 | | |
843 | | - | |
| 834 | + | |
844 | 835 | | |
845 | 836 | | |
846 | 837 | | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
| 1008 | + | |
1009 | 1009 | | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
1016 | 1013 | | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
1020 | 1017 | | |
1021 | 1018 | | |
1022 | 1019 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1984 | 1984 | | |
1985 | 1985 | | |
1986 | 1986 | | |
1987 | | - | |
| 1987 | + | |
| 1988 | + | |
1988 | 1989 | | |
1989 | 1990 | | |
1990 | 1991 | | |
| |||
0 commit comments