summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-10 20:41:05 +0800
committersumneko <sumneko@hotmail.com>2019-04-10 20:41:05 +0800
commit81da8135d6aa45ab0d02534b93e019222afbe51b (patch)
tree8279611aaf0f82b9f0382fe322ebe23074840ee9
parentcf5c0eaeb60c5610e7b9fe34f1d2df1376cb856d (diff)
downloadlua-language-server-81da8135d6aa45ab0d02534b93e019222afbe51b.zip
修正一个错误
-rw-r--r--server/libs/@lua/basic.lni1
-rw-r--r--server/src/vm/raw.lua1
-rw-r--r--server/test/hover/init.lua7
3 files changed, 8 insertions, 1 deletions
diff --git a/server/libs/@lua/basic.lni b/server/libs/@lua/basic.lni
index 333e44cd..311f699f 100644
--- a/server/libs/@lua/basic.lni
+++ b/server/libs/@lua/basic.lni
@@ -402,7 +402,6 @@ name = 'index'
``````````
name = 'value'
[[.returns]]
-name = 'table'
type = 'table'
[select]
diff --git a/server/src/vm/raw.lua b/server/src/vm/raw.lua
index 31a8e8d1..f8c35734 100644
--- a/server/src/vm/raw.lua
+++ b/server/src/vm/raw.lua
@@ -12,6 +12,7 @@ function mt:callRawSet(func, values, source)
end
tbl:addInfo('set child', source, index)
tbl:rawSet(index, value, source)
+ func:setReturn(1, tbl)
end
function mt:callRawGet(func, values, source)
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index 3d82777d..6db4a1c0 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -441,3 +441,10 @@ local _, <?r?> = pcall(a, 1)
[[
local r: string = "a"
]]
+
+TEST[[
+local <?n?> = rawlen()
+]]
+[[
+local n: integer
+]]