Correct function pointer type in closure.

This commit is contained in:
Graydon Hoare 2011-01-04 15:29:38 -08:00
parent 2ec0b724c4
commit 116dd9e338

View File

@ -194,8 +194,8 @@ fn T_fn(vec[TypeRef] inputs, TypeRef output) -> TypeRef {
}
fn T_closure(TypeRef tfn) -> TypeRef {
ret T_struct(vec(tfn,
T_ptr(T_opaque())));
ret T_struct(vec(T_ptr(tfn),
T_ptr(T_box(T_nil()))));
}
fn T_ptr(TypeRef t) -> TypeRef {