Add tests for moving nullary functions

I believe this was fixed by marijn recently.

Closes #922
This commit is contained in:
Brian Anderson 2011-09-19 19:02:53 -07:00
parent 91d8e69621
commit 107f1292eb
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,8 @@
// Issue #922
fn f2(-thing: fn()) { }
fn f(-thing: fn()) { f2(thing); }
fn main() {
f(fn(){});
}

View file

@ -0,0 +1,11 @@
// Issue #922
use std;
import std::task;
fn f() {
}
fn main() {
task::spawn(bind f());
}