From 6bb4453489dc86547d967f35308783f5823547e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 8 Apr 2022 17:00:21 +0800 Subject: don't infer `and` `or` to `boolean` --- script/vm/compiler.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'script') 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 -- cgit v1.2.3