summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-10 20:42:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-10 20:42:31 +0800
commit22abbad5b31c7842054cebc82a66e964c75b2e6e (patch)
treebb5d28d392bcfb9d73f235f5c0ac5313316715e0 /test
parentebf15e83ec1d225c392b5c818824339f6cb68a76 (diff)
downloadlua-language-server-22abbad5b31c7842054cebc82a66e964c75b2e6e.zip
update
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/definition.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua
index d492761e..308c754f 100644
--- a/test/crossfile/definition.lua
+++ b/test/crossfile/definition.lua
@@ -805,3 +805,27 @@ print(b.<?test?>)
]]
}
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+---@class A
+local t
+
+t.<!a!> = 1
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+---@class B
+local t
+
+---@type A
+t.x = nil
+
+print(t.x.<?a?>)
+ ]]
+ }
+}