Skip to content

Invalid operation depending on arguments order #343

Closed

Description

@MiranDMC
var
    $scplayer : int
end
int a = -1

if or
    $scplayer == a // ok
    a == $scplayer // One of the variables has an unknown type, or the operands are incompatible.
then
end

switch a
    case $scplayer // One of the variables has an unknown type, or the operands are incompatible.
end

Regression of #321 ?

Activity

  1. added this to the v4.1.0 milestone on Jan 21, 2025
  2. added
    type:bug
    priority:p3
    and removed on Jan 26, 2025
  3. x87 commented on Mar 16, 2025

    @x87
    Collaborator

    Fixed in 4.1

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions