diff options
-rw-r--r-- | server/libs/@lua/basic.lni | 1 | ||||
-rw-r--r-- | server/src/vm/raw.lua | 1 | ||||
-rw-r--r-- | server/test/hover/init.lua | 7 |
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 +]] |