tests/cli/wit-deep-list.wit
raw| 1 | // RUN[parse]: component wit % -t | validate -f cm-fixed-size-list |
| 2 | // RUN[abi]: component embed --dummy % | component new | validate -f cm-fixed-size-list |
| 3 | |
| 4 | package a:b; |
| 5 | |
| 6 | world lists { |
| 7 | type t = list<t2, 16>; |
| 8 | type t2 = list<t3, 16>; |
| 9 | type t3 = list<t4, 16>; |
| 10 | type t4 = list<t5, 16>; |
| 11 | type t5 = list<t6, 16>; |
| 12 | type t6 = list<t7, 16>; |
| 13 | type t7 = list<t8, 16>; |
| 14 | type t8 = list<u8, 16>; |
| 15 | |
| 16 | import x: func(t: t); |
| 17 | } |
| 18 |