crates/wit-parser/tests/ui/comments.wit
raw| 1 | package foo:comments; |
| 2 | |
| 3 | // hello |
| 4 | // world |
| 5 | // why, yes |
| 6 | // this is a comment |
| 7 | /* this too */ /* is a comment */ |
| 8 | /* this /* is /* a */ nested */ comment */ |
| 9 | |
| 10 | interface foo { |
| 11 | type x = u32; |
| 12 | |
| 13 | type /* foo */ bar /* baz */ = // |
| 14 | stream < // |
| 15 | // |
| 16 | // |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | x |
| 22 | |
| 23 | >; |
| 24 | |
| 25 | } |