tests/snapshots/cli/component-model/resources.wast/47.print
raw| 1 | (component |
| 2 | (type $x (;0;) (resource (rep i32))) |
| 3 | (component $c (;0;) |
| 4 | (import "x" (type $t (;0;) (sub resource))) |
| 5 | (export (;1;) "y" (type $t)) |
| 6 | ) |
| 7 | (instance $c (;0;) (instantiate $c |
| 8 | (with "x" (type $x)) |
| 9 | ) |
| 10 | ) |
| 11 | (alias export $c "y" (type $x2 (;1;))) |
| 12 | (core func (;0;) (canon resource.rep $x2)) |
| 13 | ) |