CondorLang / Condor

A fast, simple, and intelligent new programming language
BSD 3-Clause "New" or "Revised" License
34 stars 11 forks source link

Recursion Bug with GC #7

Open chaseWillden opened 7 years ago

chaseWillden commented 7 years ago

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);