Yeah it looks like the code was looking at the types on the CM function being lowered (in this case the code I was touching dealt with the import-lowering side), not the core fn that was underneath it.
Thanks for the help here @Joel Dice !
Victor Adossi has marked this topic as resolved.
Ended up making this PR to fix some code I changed in witbindgen-core:
https://github.com/bytecodealliance/wit-bindgen/pull/1355
Last updated: Dec 06 2025 at 06:05 UTC