rustc: Make trans.type_of handle parameter types

This commit is contained in:
Patrick Walton 2010-12-16 12:23:48 -08:00
parent e6908a66ec
commit 13b889287b

View file

@ -353,9 +353,11 @@ fn type_of_inner(@crate_ctxt cx, @typeck.ty t) -> TypeRef {
ret pair;
}
case (typeck.ty_var(_)) {
// FIXME: implement.
log "ty_var in trans.type_of";
ret T_i8();
fail;
}
case (typeck.ty_param(_)) {
ret T_ptr(T_i8());
}
}
fail;