2012-02-09 16:16:12 -06:00
|
|
|
// xfail-test
|
|
|
|
class cat {
|
|
|
|
priv {
|
|
|
|
let mutable meows : uint;
|
|
|
|
}
|
|
|
|
|
|
|
|
let how_hungry : int;
|
|
|
|
|
|
|
|
new(in_x : uint, in_y : int) { meows = in_x; how_hungry = in_y; }
|
2012-02-20 17:42:21 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let nyan : cat = cat(52u, 99);
|
|
|
|
let kitty = cat(1000u, 2);
|
|
|
|
log(debug, nyan.how_hungry);
|
|
|
|
log(debug, kitty.how_hungry);
|
2012-02-09 16:16:12 -06:00
|
|
|
}
|