1
Fork 0

test: More run-pass test fixes

This commit is contained in:
Patrick Walton 2012-12-05 16:51:32 -08:00
parent 7a065f2434
commit 6084032270
29 changed files with 47 additions and 45 deletions

View file

@ -5,7 +5,7 @@ trait MyNum : Add<self,self>, Sub<self,self>, Mul<self,self>, Eq { }
struct MyInt { val: int }
impl MyInt : Add<MyInt, MyInt> {
pure fn add(other: &MyInt) -> MyInt { mi(self.val + other.val) }
pure fn add(&self, other: &MyInt) -> MyInt { mi(self.val + other.val) }
}
impl MyInt : Sub<MyInt, MyInt> {