add type resolving for structs and fn params
- add a printer for the symbol table - add error contexts to type pass
This commit is contained in:
parent
8afab8e4ed
commit
e2cca03d52
6 changed files with 266 additions and 22 deletions
|
@ -1,5 +1,18 @@
|
|||
// import std;
|
||||
|
||||
struct B {
|
||||
field i32
|
||||
}
|
||||
|
||||
struct Awoo {
|
||||
b B
|
||||
other_field i32
|
||||
}
|
||||
|
||||
fn test_function() Awoo {
|
||||
return 1;
|
||||
}
|
||||
|
||||
fn multwo(num: i32, double_flag: bool) i32 {
|
||||
// TODO resolve expr variables
|
||||
if (true) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue