diff options
| author | Marijn Haverbeke <[email protected]> | 2011-05-13 13:34:59 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-05-13 13:34:59 +0200 |
| commit | 1a12a7b04b5c279b897dda998e946085883d9cf9 (patch) | |
| tree | d8d95db5c171f41cbbdcc3871a1c2c38bc7d71d7 /src/test | |
| parent | Move capture checking into resolve.rs (diff) | |
| download | rust-1a12a7b04b5c279b897dda998e946085883d9cf9.tar.xz rust-1a12a7b04b5c279b897dda998e946085883d9cf9.zip | |
Make module indices hold a list of items
This way, they can support having both a type and a value
of the same name.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/type-namespace.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/run-pass/type-namespace.rs b/src/test/run-pass/type-namespace.rs new file mode 100644 index 00000000..5038ae13 --- /dev/null +++ b/src/test/run-pass/type-namespace.rs @@ -0,0 +1,13 @@ +// xfail-boot +// xfail-stage0 + +type a = rec(int a); + +fn a(a a) -> int { + ret a.a; +} + +fn main() { + let a x = rec(a=1); + assert(a(x) == 1); +} |