summary refs log tree commit diff
path: root/src/test/auxiliary/cci_class_3.rs
blob: a30233c8135b8e565a80f038fe3374e4451366ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod kitties {

class cat {
  priv {
    let mut meows : uint;
  }

  let how_hungry : int;

  new(in_x : uint, in_y : int) { meows = in_x; how_hungry = in_y; }

  fn speak() { meows += 1u; }
  fn meow_count() -> uint { meows }

}

}