diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-10 20:42:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-10 20:42:31 +0800 |
commit | 22abbad5b31c7842054cebc82a66e964c75b2e6e (patch) | |
tree | bb5d28d392bcfb9d73f235f5c0ac5313316715e0 /test | |
parent | ebf15e83ec1d225c392b5c818824339f6cb68a76 (diff) | |
download | lua-language-server-22abbad5b31c7842054cebc82a66e964c75b2e6e.zip |
update
Diffstat (limited to 'test')
-rw-r--r-- | test/crossfile/definition.lua | 24 |
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?>) + ]] + } +} |