Added support for type placeholders (explicit requested type
inference in a type with `_` ). This enables partial type inference.
This commit is contained in:
parent
6c895d1d58
commit
eb69eb36f8
10 changed files with 236 additions and 11 deletions
|
@ -504,7 +504,7 @@ pub fn print_type(s: &mut State, ty: &ast::Ty) -> io::IoResult<()> {
|
|||
try!(word(&mut s.s, ")"));
|
||||
}
|
||||
ast::TyInfer => {
|
||||
fail!("print_type shouldn't see a ty_infer");
|
||||
try!(word(&mut s.s, "_"));
|
||||
}
|
||||
}
|
||||
end(s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue