Roldak/TIMScript

Clear reference locals before calling

Roldak opened this issue · 1 comments

begin{
    def f(b: bool) => {
        if (b) {
            let x = new Int(2)
        }
        else{
            Thread.forcecollection()
        }
    }

    f(true)
    Thread.forcecollection()
    f(false)
}

should be ok now