Fix check-fast.
This commit is contained in:
parent
5b4d5cee03
commit
5236a304c4
@ -15,14 +15,11 @@ fn test_bool() {
|
||||
}
|
||||
|
||||
type t = {a: int, b: int};
|
||||
impl t : cmp::Eq {
|
||||
pure fn eq(&&other: t) -> bool {
|
||||
self.a == other.a && self.b == other.b
|
||||
}
|
||||
}
|
||||
|
||||
fn test_rec() {
|
||||
fn compare_rec(t1: t, t2: t) -> bool { return t1 == t2; }
|
||||
fn compare_rec(t1: t, t2: t) -> bool {
|
||||
t1.a == t2.a && t1.b == t2.b
|
||||
}
|
||||
test_generic::<t>({a: 1, b: 2}, compare_rec);
|
||||
}
|
||||
|
||||
|
@ -17,14 +17,11 @@ fn test_bool() {
|
||||
}
|
||||
|
||||
type t = {a: int, b: int};
|
||||
impl t : cmp::Eq {
|
||||
pure fn eq(&&other: t) -> bool {
|
||||
self.a == other.a && self.b == other.b
|
||||
}
|
||||
}
|
||||
|
||||
fn test_rec() {
|
||||
fn compare_rec(t1: t, t2: t) -> bool { return t1 == t2; }
|
||||
fn compare_rec(t1: t, t2: t) -> bool {
|
||||
t1.a == t2.a && t1.b == t2.b
|
||||
}
|
||||
test_generic::<t>({a: 1, b: 2}, compare_rec);
|
||||
}
|
||||
|
||||
|
@ -17,14 +17,11 @@ fn test_bool() {
|
||||
}
|
||||
|
||||
type t = {a: int, b: int};
|
||||
impl t : cmp::Eq {
|
||||
pure fn eq(&&other: t) -> bool {
|
||||
self.a == other.a && self.b == other.b
|
||||
}
|
||||
}
|
||||
|
||||
fn test_rec() {
|
||||
fn compare_rec(t1: t, t2: t) -> bool { return t1 == t2; }
|
||||
fn compare_rec(t1: t, t2: t) -> bool {
|
||||
t1.a == t2.a && t1.b == t2.b
|
||||
}
|
||||
test_generic::<t>({a: 1, b: 2}, {a: 2, b: 3}, compare_rec);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user