| 1 |
(component |
| 2 |
(component $X (;0;) |
| 3 |
(type $t (;0;) (resource (rep i32))) |
| 4 |
(export (;1;) "t" (type $t)) |
| 5 |
) |
| 6 |
(component $F (;1;) |
| 7 |
(type (;0;) |
| 8 |
(instance |
| 9 |
(export (;0;) "t" (type (sub resource))) |
| 10 |
) |
| 11 |
) |
| 12 |
(import "x" (instance $i (;0;) (type 0))) |
| 13 |
(alias export $i "t" (type $t (;1;))) |
| 14 |
(export (;2;) "t" (type $t)) |
| 15 |
) |
| 16 |
(instance $x1 (;0;) (instantiate $X)) |
| 17 |
(instance $f1 (;1;) (instantiate $F |
| 18 |
(with "x" (instance $x1)) |
| 19 |
) |
| 20 |
) |
| 21 |
(instance $f2 (;2;) (instantiate $F |
| 22 |
(with "x" (instance $x1)) |
| 23 |
) |
| 24 |
) |
| 25 |
(alias export $f1 "t" (type $t1 (;0;))) |
| 26 |
(alias export $f2 "t" (type $t2 (;1;))) |
| 27 |
(component $T (;2;) |
| 28 |
(import "x" (type $x (;0;) (sub resource))) |
| 29 |
(import "y" (type (;1;) (eq $x))) |
| 30 |
) |
| 31 |
(instance $test (;3;) (instantiate $T |
| 32 |
(with "x" (type $t1)) |
| 33 |
(with "y" (type $t2)) |
| 34 |
) |
| 35 |
) |
| 36 |
) |