sannybuilder / dev

Sanny Builder Bug Tracker and Roadmap development
https://sannybuilder.com
49 stars 0 forks source link

Invalid operation depending on arguments order #343

Open MiranDMC opened 3 months ago

MiranDMC commented 3 months ago
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 ?