| 1 |
package foo:foo; |
| 2 |
|
| 3 |
interface foo { |
| 4 |
use bar.{the-type}; |
| 5 |
} |
| 6 |
|
| 7 |
interface bar { |
| 8 |
type the-type = u32; |
| 9 |
} |
| 10 |
|
| 11 |
interface baz { |
| 12 |
use foo.{the-type}; |
| 13 |
use bar.{the-type as test}; |
| 14 |
} |
| 15 |
|
| 16 |
interface empty { |
| 17 |
} |
| 18 |
|
| 19 |
interface use-from-empty { |
| 20 |
use empty.{}; |
| 21 |
use empty.{}; |
| 22 |
} |
| 23 |
|
| 24 |
interface use-multiple { |
| 25 |
use baz.{the-type, test}; |
| 26 |
|
| 27 |
some-function: func(x: the-type) -> test; |
| 28 |
} |
| 29 |
|
| 30 |
interface trailing-comma { |
| 31 |
use foo.{the-type,}; |
| 32 |
|
| 33 |
record the-foo { a: the-type } |
| 34 |
} |