add lots of TODOs for variables and type analysis of statements
- comp_ctx: replace Function.symbols to Function.env
This commit is contained in:
parent
45275d73db
commit
bf035abadf
4 changed files with 75 additions and 8 deletions
|
@ -1,7 +1,9 @@
|
|||
// import std;
|
||||
const (
|
||||
test_var = 1 + 3
|
||||
)
|
||||
|
||||
fn f() i32 {
|
||||
var a = 2;
|
||||
var a = 3;
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
@ -9,10 +11,6 @@ fn f2() i32 {
|
|||
return f() + 2;
|
||||
}
|
||||
|
||||
const (
|
||||
piss = 1 + 3
|
||||
)
|
||||
|
||||
enum B {
|
||||
a
|
||||
b
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue