test: More run-pass test fixes
This commit is contained in:
parent
7a065f2434
commit
6084032270
29 changed files with 47 additions and 45 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue