1
Fork 0

Fix closure pretty-print tests

This commit is contained in:
Brian Anderson 2012-08-04 17:41:04 -07:00
parent a60f9c76f5
commit a52f6d26db
2 changed files with 1 additions and 2 deletions

View file

@ -4,7 +4,7 @@
// preserved. They are needed to disambiguate `{return n+1}; - 0` from
// `({return n+1}-0)`.
fn id(f: fn() -> int) -> int { f() }
fn id(f: fn&() -> int) -> int { f() }
fn wsucc(n: int) -> int { (do id || { 1 }) - 0 }
fn main() { }

View file

@ -1,7 +1,6 @@
// pp-exact
fn from_foreign_fn(x: extern fn()) { }
fn from_closure(x: fn()) { }
fn from_stack_closure(x: fn&()) { }
fn from_box_closure(x: fn@()) { }
fn from_unique_closure(x: fn~()) { }