2011-03-25 14:19:20 -05:00
|
|
|
// xfail-stage0
|
2011-05-03 20:13:51 -05:00
|
|
|
// xfail-stage1
|
|
|
|
// xfail-stage2
|
2010-06-23 23:03:09 -05:00
|
|
|
fn main() {
|
2011-05-16 20:21:22 -05:00
|
|
|
let vec[int] v = [1,2,3,4,5];
|
2010-06-23 23:03:09 -05:00
|
|
|
auto v2 = v.(1,2);
|
2011-05-02 19:47:24 -05:00
|
|
|
assert (v2.(0) == 2);
|
|
|
|
assert (v2.(1) == 3);
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|