mirror of https://git.sr.ht/~garritfra/sabre
Garrit Franke
3 years ago
4 changed files with 8 additions and 7 deletions
@ -1,7 +1,9 @@
|
||||
// main.sb |
||||
fn main() { |
||||
foo(2, 1); |
||||
return foo(2); |
||||
} |
||||
|
||||
fn foo(x) { |
||||
return x; |
||||
} |
||||
} |
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
// out.js
|
||||
function main() { |
||||
foo(2,1) |
||||
return foo(2); |
||||
} |
||||
function foo(x) { |
||||
return x |
||||
return x; |
||||
} |
||||
console.log(main()) |
||||
console.log(main()); |
||||
|
Loading…
Reference in new issue