e8e82ce032
485: Add type inference for a bunch of primitives r=flodiebold a=marcusklaas This PR adds inference for `&str`, `&[u8]`, `char`, `bool`, floats and integers. For floats and integers it uses type variables to infer the exact type, i.e. `u32`, from context when it's not annotated explicitly. I'm not quite happy with the implementation yet, but I think it mostly works now. Co-authored-by: Marcus Klaas de Vries <mail@marcusklaas.nl> |
||
---|---|---|
.. | ||
gen_lsp_server | ||
ra_arena | ||
ra_cli | ||
ra_db | ||
ra_hir | ||
ra_ide_api | ||
ra_ide_api_light | ||
ra_lsp_server | ||
ra_syntax | ||
ra_text_edit | ||
ra_vfs | ||
test_utils | ||
thread_worker | ||
tools |