diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-08 17:00:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-08 17:00:21 +0800 |
commit | 6bb4453489dc86547d967f35308783f5823547e0 (patch) | |
tree | 8d58db0bae27a3fabca07be1b2534ce84f08bbe4 /script/vm/compiler.lua | |
parent | 8772b47c0e2d3761cc6b33769e98223c08ca9629 (diff) | |
download | lua-language-server-6bb4453489dc86547d967f35308783f5823547e0.zip |
don't infer `and` `or` to `boolean`
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 2 |
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 |