2012-05-04 13:42:13 -07:00
|
|
|
class cat {
|
|
|
|
priv {
|
|
|
|
let mut meows : uint;
|
|
|
|
fn sleep() { loop{} }
|
|
|
|
fn meow() {
|
|
|
|
#error("Meow");
|
2012-06-30 12:23:59 +01:00
|
|
|
meows += 1u; //~ ERROR unresolved name
|
|
|
|
sleep(); //~ ERROR unresolved name
|
2012-05-04 13:42:13 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
new(in_x : uint) { self.meows = in_x; }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|