Skip to content

Recursion Bug with GC #7

Description

@chaseWillden

The GC is not working properly when there is recursion. See the Code

Example Code:

import "println" from "console"
func fib(int n){
    println("-> " + n);
    if (n == 0) return 0;
    else if (n == 1) return 1;
    else return fib(n - 1) + fib(n - 2);
}

int val = fib(2);
println(val);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions