Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tealish dont't compile don't give any error just making stuck on terminal with reasigned variable and validated as conditional #89

Open
helderjnpinto opened this issue May 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@helderjnpinto
Copy link

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
@helderjnpinto helderjnpinto added the bug Something isn't working label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant