2012-01-09 18:12:37 -06:00
|
|
|
// Make sure we don't leak fn@s in silly ways.
|
2011-10-18 17:07:40 -05:00
|
|
|
fn force(f: fn@()) { f() }
|
2011-08-04 19:58:12 -05:00
|
|
|
fn main() {
|
|
|
|
let x = 7;
|
2012-01-10 08:49:15 -06:00
|
|
|
let _f = fn@() { log(error, x); };
|
|
|
|
force(fn@() { log(error, x); });
|
2011-08-04 19:58:12 -05:00
|
|
|
}
|