tests/cli/wit-with-features.wit.stdout
raw| 1 | /// RUN: component wit --features foo % |
| 2 | package a:b; |
| 3 | |
| 4 | @unstable(feature = foo) |
| 5 | interface foo { |
| 6 | @unstable(feature = foo) |
| 7 | type t = u32; |
| 8 | } |
| 9 | |
| 10 | @unstable(feature = foo) |
| 11 | interface bar { |
| 12 | @unstable(feature = foo) |
| 13 | use foo.{t}; |
| 14 | |
| 15 | @unstable(feature = foo) |
| 16 | record x { |
| 17 | y: t, |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | interface another-interface { |
| 22 | @unstable(feature = foo) |
| 23 | resource x { |
| 24 | @unstable(feature = foo) |
| 25 | constructor(); |
| 26 | @unstable(feature = foo) |
| 27 | x: static func(); |
| 28 | @unstable(feature = foo) |
| 29 | y: func(); |
| 30 | } |
| 31 | |
| 32 | @unstable(feature = foo) |
| 33 | variant y { |
| 34 | x(x), |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | @unstable(feature = foo) |
| 39 | world the-world { |
| 40 | @unstable(feature = foo) |
| 41 | import foo; |
| 42 | |
| 43 | @unstable(feature = foo) |
| 44 | resource thing { |
| 45 | @unstable(feature = foo) |
| 46 | constructor(); |
| 47 | } |
| 48 | @unstable(feature = foo) |
| 49 | import x: func(); |
| 50 | |
| 51 | @unstable(feature = foo) |
| 52 | export y: func(); |
| 53 | @unstable(feature = foo) |
| 54 | export bar; |
| 55 | } |