Remove 'with'

This commit is contained in:
Brian Anderson 2012-09-04 13:29:32 -07:00
parent ef880f2245
commit 200959d7ce
77 changed files with 404 additions and 419 deletions

View file

@ -7,5 +7,5 @@ type point = {x: int, y: int};
fn main() {
let origin: point = {x: 0, y: 0};
let origin3d: point = {z: 0 with origin};
let origin3d: point = {z: 0,.. origin};
}

View file

@ -4,6 +4,6 @@ type point = {x: int, y: int};
fn main() {
let mut origin: point;
origin = {x: 10 with origin}; //~ ERROR use of possibly uninitialized variable: `origin`
origin = {x: 10,.. origin}; //~ ERROR use of possibly uninitialized variable: `origin`
copy origin;
}

View file

@ -4,5 +4,5 @@ fn main() {
let a = {foo: 0i};
let b = {foo: true with a};
let b = {foo: true,.. a};
}

View file

@ -9,7 +9,7 @@ struct my_resource {
fn main() {
{
let a = {x: 0, y: my_resource(20)};
let b = {x: 2 with a};
let b = {x: 2,.. a};
log(error, (a, b));
}
}