> return 1 == true
false
Expected result: type error, or true
Result: false
While comparing a boolean and an integer is wrong, raising a type error would
be a better idea than returning false
.
Tested with: Lua 5.1.5
> return 1 == true
false
Expected result: type error, or true
Result: false
While comparing a boolean and an integer is wrong, raising a type error would
be a better idea than returning false
.
Tested with: Lua 5.1.5