Clean up run-pass/fun-call-variants
Uncomment parts of the test that work correctly now, enable pretty testing
This commit is contained in:
parent
a0ca1ac1bc
commit
d681f062c7
@ -1,6 +1,3 @@
|
|||||||
// xfail-pretty
|
|
||||||
|
|
||||||
|
|
||||||
// -*- rust -*-
|
// -*- rust -*-
|
||||||
fn ho(f: fn(int) -> int ) -> int { let n: int = f(3); ret n; }
|
fn ho(f: fn(int) -> int ) -> int { let n: int = f(3); ret n; }
|
||||||
|
|
||||||
@ -9,13 +6,10 @@ fn direct(x: int) -> int { ret x + 1; }
|
|||||||
fn main() {
|
fn main() {
|
||||||
let a: int =
|
let a: int =
|
||||||
direct(3); // direct
|
direct(3); // direct
|
||||||
//let int b = ho(direct); // indirect unbound
|
let b: int = ho(direct); // indirect unbound
|
||||||
|
|
||||||
|
|
||||||
let c: int =
|
let c: int =
|
||||||
ho(bind direct(_)); // indirect bound
|
ho(bind direct(_)); // indirect bound
|
||||||
//assert (a == b);
|
assert (a == b);
|
||||||
//assert (b == c);
|
assert (b == c);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user