summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-08 17:00:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-08 17:00:21 +0800
commit6bb4453489dc86547d967f35308783f5823547e0 (patch)
tree8d58db0bae27a3fabca07be1b2534ce84f08bbe4 /script
parent8772b47c0e2d3761cc6b33769e98223c08ca9629 (diff)
downloadlua-language-server-6bb4453489dc86547d967f35308783f5823547e0.zip
don't infer `and` `or` to `boolean`
Diffstat (limited to 'script')
-rw-r--r--script/vm/compiler.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 889c70a1..cbb03070 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1070,7 +1070,6 @@ local compilerSwitch = util.switch()
nodeMgr.setNode(source, m.compileNode(source[1]))
return
end
- nodeMgr.setNode(source, globalMgr.getGlobal('type', 'boolean'))
return
end
if source.op.type == 'or' then
@@ -1083,7 +1082,6 @@ local compilerSwitch = util.switch()
nodeMgr.setNode(source, m.compileNode(source[2]))
return
end
- nodeMgr.setNode(source, globalMgr.getGlobal('type', 'boolean'))
return
end
if source.op.type == '==' then