summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-12 15:00:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-12 15:00:19 +0800
commit690aadefc66e447b3f3205882c1fbcc8df987bda (patch)
tree33d0991d64febe384e16d5185677fcc9cc553a4c /test
parentcbff022761f244cbb8940f812ede207c44ab2614 (diff)
downloadlua-language-server-690aadefc66e447b3f3205882c1fbcc8df987bda.zip
update
Diffstat (limited to 'test')
-rw-r--r--test/definition/luadoc.lua7
-rw-r--r--test/type_inference/init.lua3
2 files changed, 8 insertions, 2 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index e6827d65..14f24552 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -557,6 +557,13 @@ TEST [[
local Foo = {}
function Foo:<!bar1!>() end
+---@generic T: table, V
+---@param t T
+---@return fun(table: V[], i?: integer):integer, V
+---@return T
+---@return integer i
+local function ipairs(t) end
+
---@type table<number, table<number, Foo>>
local v1
for i, v in ipairs(v1) do
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 02355a94..dc77e0f8 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -1,7 +1,6 @@
local files = require 'files'
-local config = require 'config'
local vm = require 'vm'
-local guide = require 'core.guide'
+local guide = require 'parser.guide'
rawset(_G, 'TEST', true)