add emitting of integer and float literals
- remove panics - add emitting for return statements - remove default emitting of return a+b;
This commit is contained in:
parent
4c1bdb5f91
commit
013aafa8a4
2 changed files with 53 additions and 27 deletions
|
@ -1,7 +1,7 @@
|
|||
// import std;
|
||||
|
||||
fn add(a: i32, b: i32) i32 {
|
||||
return a + b;
|
||||
fn add() i32 {
|
||||
return 1 + 1;
|
||||
}
|
||||
|
||||
// type is void by default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue