When I try to implement WASIp2's wasi-filesystem, an error "Cannot instantiate resource as type" occursed by filesystem-error-code: func(err: borrow<error>) -> option<error-code>;.
I found the reason is generate_types untreated Multilevel indirect references to resources.
When I try to implement WASIp2's
wasi-filesystem
, an error "Cannot instantiate resource as type" occursed byfilesystem-error-code: func(err: borrow<error>) -> option<error-code>;
. I found the reason isgenerate_types
untreated Multilevel indirect references to resources.Simple WIT Example
Related Issue:https://github.com/DouglasDwyer/wasm_component_layer/issues/7 Related Commit: https://github.com/DouglasDwyer/wasm_component_layer/commit/30c202620c0b35cdfcaef829ea4e7b70ba4516dc