Skip to content

TimerA unknown variable type in function scope #407

Open

Description

@MiranDMC

Code

function FOO()
    TimerA = 0
    int targetTime = 1000
    repeat
        wait {time} 0
    until TimerA > targetTime
end

throws compilation error: Incorrect expression TimerA > targetTime. One of the variables has an unknown type, or the operands are incompatible.

After moving it outside of function body it compiles.

Activity

  1. added
    type:bug
    priority:p3
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:p3scope:compilertype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions