From 7de3d6851a41d993b1f84eddd3331067a82e8878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 28 Jun 2022 16:18:09 +0800 Subject: fix infer in table --- script/vm/runner.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'script/vm/runner.lua') diff --git a/script/vm/runner.lua b/script/vm/runner.lua index b8ac13fd..8c1e816e 100644 --- a/script/vm/runner.lua +++ b/script/vm/runner.lua @@ -304,6 +304,10 @@ function mt:_lookInto(action, topNode, outNode) end elseif action.type == 'getindex' then self:_lookInto(action.index, topNode) + elseif action.type == 'table' then + for _, field in ipairs(action) do + self:_lookInto(field, topNode) + end end ::RETURN:: topNode = self:_fastWard(action.finish, topNode) -- cgit v1.2.3