diff options
Diffstat (limited to 'src/test/run-pass/mutual-recursion-group.rs')
| -rw-r--r-- | src/test/run-pass/mutual-recursion-group.rs | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/test/run-pass/mutual-recursion-group.rs b/src/test/run-pass/mutual-recursion-group.rs index 850858a3..2e36df70 100644 --- a/src/test/run-pass/mutual-recursion-group.rs +++ b/src/test/run-pass/mutual-recursion-group.rs @@ -1,10 +1,25 @@ // -*- rust -*- -type colour = tag(red(), green(), blue()); -type tree = tag(children(@list), leaf(colour)); -type list = tag(cons(@tree, @list), nil()); +tag colour { + red(); + green(); + blue(); +} + +tag tree { + children(@list); + leaf(colour); +} -type small_list = tag(kons(int,@small_list), neel()); +tag list { + cons(@tree, @list); + nil(); +} + +tag small_list { + kons(int,@small_list); + neel(); +} fn main() { } |