| 1 |
(module $recursive_subtyping |
| 2 |
(rec |
| 3 |
(type $ft0_sup (;0;) (sub (func (result (ref $ct_rec_sup))))) |
| 4 |
(type $ft0 (;1;) (sub $ft0_sup (func (result (ref $ct_rec))))) |
| 5 |
(type $ft1 (;2;) (sub (func (param i32) (result (ref $ct_rec))))) |
| 6 |
(type $ct_rec_sup (;3;) (sub (cont $ft0_sup))) |
| 7 |
(type $ct_rec (;4;) (sub $ct_rec_sup (cont $ft0))) |
| 8 |
) |
| 9 |
(type $ct0_sup (;5;) (cont $ft0_sup)) |
| 10 |
(type $ct0 (;6;) (cont $ft0)) |
| 11 |
(type $ct1 (;7;) (cont $ft1)) |
| 12 |
(type (;8;) (func (param (ref $ct1)))) |
| 13 |
(func $test (;0;) (type 8) (param $x (ref $ct1)) |
| 14 |
i32.const 123 |
| 15 |
local.get $x |
| 16 |
cont.bind $ct1 $ct0 |
| 17 |
drop |
| 18 |
i32.const 123 |
| 19 |
local.get $x |
| 20 |
cont.bind $ct1 $ct0_sup |
| 21 |
drop |
| 22 |
) |
| 23 |
) |