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 -*-
|
||||
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() {
|
||||
let a: int =
|
||||
direct(3); // direct
|
||||
//let int b = ho(direct); // indirect unbound
|
||||
|
||||
let b: int = ho(direct); // indirect unbound
|
||||
|
||||
let c: int =
|
||||
ho(bind direct(_)); // indirect bound
|
||||
//assert (a == b);
|
||||
//assert (b == c);
|
||||
|
||||
|
||||
assert (a == b);
|
||||
assert (b == c);
|
||||
}
|
Loading…
Reference in New Issue
Block a user