summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
authorSeanTheBuilder1 <seanthebuilder52@gmail.com>2024-08-03 14:26:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-08-06 21:13:33 +0800
commit15c716da6c690b7b8dcb90d9eec13a449dfc0e05 (patch)
tree4d0dbd9da27152021c33d56dc897cae07c308cad /test/type_inference
parent1dbe571cfe8b003f539f09385d7b719f7f13b381 (diff)
downloadlua-language-server-15c716da6c690b7b8dcb90d9eec13a449dfc0e05.zip
feat: flip binary operator check if failed
if vm.runOperator fails try again with flipped arguments this emulates how lua checks the binary metaevents in which if there is no corresponding binary metaevent for the left operand it checks the right operand instead. This also works when both operands are tables. This change affects: - __add - __sub - __mul - __div - __idiv - __mod - __pow - __concat - __band - __bor - __bxor - __shl - __shr
Diffstat (limited to 'test/type_inference')
0 files changed, 0 insertions, 0 deletions