tests/cli/wit-stability-inherited.wit
raw| 1 | // RUN: component wit % |
| 2 | |
| 3 | package a:[email protected]; |
| 4 | |
| 5 | interface foo { |
| 6 | type t = u32; |
| 7 | } |
| 8 | |
| 9 | interface bar { |
| 10 | use foo.{t}; |
| 11 | } |
| 12 | |
| 13 | interface baz { |
| 14 | use bar.{t}; |
| 15 | } |
| 16 | |
| 17 | world x { |
| 18 | @since(version = 1.0.0) |
| 19 | import baz; |
| 20 | } |
| 21 | |
| 22 | world y { |
| 23 | @since(version = 1.0.0) |
| 24 | export baz; |
| 25 | } |