summaryrefslogtreecommitdiff
path: root/server/src/vm
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-28 20:20:41 +0800
committersumneko <sumneko@hotmail.com>2019-04-28 20:20:41 +0800
commitd1274f277907b4b7e45dd018f5617708ea37636d (patch)
treed2a10cc5f7cc3aca34362f6cf24b67da377b4167 /server/src/vm
parent0bc67627a4409a08e34be0b44cba928cdacf8192 (diff)
downloadlua-language-server-d1274f277907b4b7e45dd018f5617708ea37636d.zip
检查重复field
Diffstat (limited to 'server/src/vm')
-rw-r--r--server/src/vm/value.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua
index e924f642..43f278c0 100644
--- a/server/src/vm/value.lua
+++ b/server/src/vm/value.lua
@@ -549,7 +549,7 @@ function mt:setEmmy(emmy)
emmyClass:eachField(function (field)
local name = field:getName()
local value = field:bindValue()
- self:setChild(name, value, field:getSource()[2])
+ self:setChild(name, value, field:getSource())
end)
elseif emmy.type == 'emmy.type' then
---@type EmmyType