Describe the bug
With this code the compiler don't compiles the compiled get stuck.
https://gist.github.com/helderjnpinto/2416f4d5e3f0dc3349ee07d976e15536
To Reproduce
Tealish compile Test.tl
Expected behavior
code compile
Additional context
I think the problem here is in the if statement if returns (line 72 ) something compiles and if is removed compiles as well
https://gist.github.com/helderjnpinto/2416f4d5e3f0dc3349ee07d976e15536#file-test-bug-tealish-L71-L73
with this case compiles:
func calc(from_round: int) int:
int end_round = Global.Round
int test = 1
if end_round > 10:
test = 10
end
return end_round - from_round
end