about summary refs log tree commit diff
path: root/src/test/run-pass/class-methods.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/class-methods.rs')
-rw-r--r--src/test/run-pass/class-methods.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-pass/class-methods.rs b/src/test/run-pass/class-methods.rs
index f1769b0fb50..8023879ca97 100644
--- a/src/test/run-pass/class-methods.rs
+++ b/src/test/run-pass/class-methods.rs
@@ -5,10 +5,10 @@ class cat {
 
   let how_hungry : int;
 
-  new(in_x : uint, in_y : int) { meows = in_x; how_hungry = in_y; }
+  new(in_x : uint, in_y : int) { self.meows = in_x; self.how_hungry = in_y; }
 
-  fn speak() { meows += 1u; }
-  fn meow_count() -> uint { meows }
+  fn speak() { self.meows += 1u; }
+  fn meow_count() -> uint { self.meows }
 }
 
 fn main() {