d1298f768c
This was previously disallowed by the typechecker and not properly handled in trans. I removed the typechecker check (replacing it with a simpler check that spawned functions don't have type params) and fixed trans. Closes #756.
9 lines
137 B
Rust
9 lines
137 B
Rust
// xfail-stage0
|
|
fn main() {
|
|
fn echo[T](c: int, x: fn(&T)) { log_err "wee"; }
|
|
|
|
let y = bind echo(42, _);
|
|
|
|
y(fn(i: &str){});
|
|
}
|