summaryrefslogtreecommitdiff
path: root/server-beta/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-04 16:31:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-04 16:31:51 +0800
commiteb1fffc9ddfaa804973b1e05c7001d84194ce5a6 (patch)
tree42400b6fb8a9b32acc34deeab31173ebd9491c87 /server-beta/test
parent318f70aeb98b0a1cca0d69b440e08b15c1aca2c4 (diff)
downloadlua-language-server-eb1fffc9ddfaa804973b1e05c7001d84194ce5a6.zip
修正一些bug
Diffstat (limited to 'server-beta/test')
-rw-r--r--server-beta/test/crossfile/definition.lua19
-rw-r--r--server-beta/test/diagnostics/init.lua5
2 files changed, 24 insertions, 0 deletions
diff --git a/server-beta/test/crossfile/definition.lua b/server-beta/test/crossfile/definition.lua
index f218bf69..2f70e5e8 100644
--- a/server-beta/test/crossfile/definition.lua
+++ b/server-beta/test/crossfile/definition.lua
@@ -380,6 +380,25 @@ TEST {
}
}
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ local <!x!>
+ return {
+ <!x!> = x,
+ }
+ ]],
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ local t = require 'a'
+ print(t.<?x?>)
+ ]],
+ },
+}
+
--TEST {
-- {
-- path = 'a.lua',
diff --git a/server-beta/test/diagnostics/init.lua b/server-beta/test/diagnostics/init.lua
index 555bc0a8..bd922825 100644
--- a/server-beta/test/diagnostics/init.lua
+++ b/server-beta/test/diagnostics/init.lua
@@ -398,6 +398,11 @@ end
]]
TEST [[
+local <!t!> = {}
+t[1] = 1
+]]
+
+TEST [[
---@class <!Class!>
---@class <!Class!>
]]