2011-05-15 01:51:31 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
// xfail-stage0
|
2011-05-15 01:51:31 -04:00
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
// Regression test for issue #377
|
|
|
|
fn main() {
|
2011-07-27 14:19:39 +02:00
|
|
|
let a = { let b = {a: 3}; b };
|
2011-07-26 14:49:40 +02:00
|
|
|
assert (a.a == 3);
|
2011-07-27 14:19:39 +02:00
|
|
|
let c = { let d = {v: 3}; d };
|
2011-06-15 11:19:50 -07:00
|
|
|
assert (c.v == 3);
|
|
|
|
}
|