crates/wit-parser/tests/ui/complex-include/root.wit
raw| 1 | package foo:root; |
| 2 | |
| 3 | interface ai {} |
| 4 | interface bi {} |
| 5 | |
| 6 | world a { |
| 7 | import ai; |
| 8 | import bi; |
| 9 | } |
| 10 | |
| 11 | world b { |
| 12 | include foo:bar/bar-a; |
| 13 | } |
| 14 | |
| 15 | world c { |
| 16 | include b; |
| 17 | include foo:bar/bar-a; |
| 18 | } |
| 19 | |
| 20 | world union-world { |
| 21 | include a; |
| 22 | include b; |
| 23 | include c; |
| 24 | include foo:bar/bar-a; |
| 25 | include foo:baz/baz-a; |
| 26 | } |