Luna
013aafa8a4
- remove panics - add emitting for return statements - remove default emitting of return a+b;
11 lines
163 B
Text
11 lines
163 B
Text
// import std;
|
|
|
|
fn add() i32 {
|
|
return 1 + 1;
|
|
}
|
|
|
|
// type is void by default
|
|
//fn main() {
|
|
// print("piss\n");
|
|
// // print("2 + 2 = %d\n", add(1, 2));
|
|
//}
|