change variable declarations to statements
doing them as expressions was a hack since no 'var' keyword, also, yeet the := operator from the parser.
This commit is contained in:
parent
e69451cdd9
commit
45275d73db
7 changed files with 44 additions and 47 deletions
|
@ -1,6 +1,7 @@
|
|||
// import std;
|
||||
|
||||
fn f() i32 {
|
||||
var a = 2;
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue