analysis: add name type resolution

this only adds resolution for the types. for the actual metadata, such
as e.g parameters, that isn't available, so codegen isn't helped by
this.
This commit is contained in:
Luna 2019-09-27 15:12:30 -03:00
parent 4346636cfa
commit 362fc7e3ef
3 changed files with 44 additions and 4 deletions

View file

@ -43,8 +43,7 @@ fn multwo(num: i32, double_flag: bool) i32 {
}
fn multwo_with_one(b: i32) i32 {
// TODO replace by b
return multwo(2, false) + 2;
return multwo(b, false) + b;
}
fn add(a: i32, b: i32) i32 {