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
127 B
Rust
9 lines
127 B
Rust
// xfail-stage0
|
|
fn main() {
|
|
fn echo[T](c: int, x: vec[T]) { }
|
|
|
|
let y: fn(vec[int]) = bind echo(42, _);
|
|
|
|
y([1]);
|
|
}
|