Skip to content

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

@helderjnpinto

Description

@helderjnpinto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions