| 1 |
(component |
| 2 |
(type $r' (;0;) (resource (rep i32))) |
| 3 |
(component $C (;0;) |
| 4 |
(type (;0;) |
| 5 |
(instance |
| 6 |
(export (;0;) "t" (type (sub resource))) |
| 7 |
) |
| 8 |
) |
| 9 |
(import "x" (instance $x (;0;) (type 0))) |
| 10 |
(export (;1;) "y" (instance $x)) |
| 11 |
) |
| 12 |
(instance (;0;) |
| 13 |
(export "t" (type $r')) |
| 14 |
) |
| 15 |
(instance $c' (;1;) (instantiate $C |
| 16 |
(with "x" (instance 0)) |
| 17 |
) |
| 18 |
) |
| 19 |
(export $c (;2;) "c" (instance $c')) |
| 20 |
(alias export $c "y" (instance $y (;3;))) |
| 21 |
(alias export $y "t" (type $r (;1;))) |
| 22 |
(core func $f (;0;) (canon resource.drop $r)) |
| 23 |
(type (;2;) (own $r)) |
| 24 |
(type (;3;) (func (param "x" 2))) |
| 25 |
(func (;0;) (type 3) (canon lift (core func $f))) |
| 26 |
(export (;1;) "f" (func 0)) |
| 27 |
) |