mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Recursive capture now works
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
export default function main() {
|
||||
let one = 1;
|
||||
// test_output! 120
|
||||
|
||||
function factorial(n) {
|
||||
export default function main() {
|
||||
const one = 1;
|
||||
|
||||
function factorial(n: number): number {
|
||||
if (n === 0) {
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user