diff options
| author | Graydon Hoare <[email protected]> | 2010-09-09 15:59:29 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-09 15:59:29 -0700 |
| commit | a9e2327a18e782df524c14dc42910d61a4785324 (patch) | |
| tree | 8763224ac3a4c11275dd64257aac47036c97c48d /src/test/run-pass/lib-deque.rs | |
| parent | Fixed lost signal notifications. (diff) | |
| download | rust-a9e2327a18e782df524c14dc42910d61a4785324.tar.xz rust-a9e2327a18e782df524c14dc42910d61a4785324.zip | |
Switch tags to purely nominal, removing TY_iso and TY_idx. Seems to mostly work, possibly a little bumpy. Changes a lot.
Diffstat (limited to 'src/test/run-pass/lib-deque.rs')
| -rw-r--r-- | src/test/run-pass/lib-deque.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/test/run-pass/lib-deque.rs b/src/test/run-pass/lib-deque.rs index ecd8bc44..341811f3 100644 --- a/src/test/run-pass/lib-deque.rs +++ b/src/test/run-pass/lib-deque.rs @@ -126,11 +126,17 @@ fn test_parameterized[T](eqfn[T] e, T a, T b, T c, T d) { check (e(deq.get(3), d)); } -type taggy = tag(one(int), two(int, int), three(int, int, int)); +tag taggy { + one(int); + two(int, int); + three(int, int, int); +} -type taggypar[T] = tag(onepar(int), - twopar(int, int), - threepar(int, int, int)); +tag taggypar[T] { + onepar(int); + twopar(int, int); + threepar(int, int, int); +} type reccy = rec(int x, int y, taggy t); |