summaryrefslogtreecommitdiff
path: root/server/test/crossfile/definition.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-22 16:23:46 +0800
committersumneko <sumneko@hotmail.com>2019-04-22 16:23:46 +0800
commit2523bad318880bf7547f5d095fce4a681fe24a54 (patch)
treec455011faec35182915adb2ab7b2a02b7dfb8461 /server/test/crossfile/definition.lua
parentefa8bfce8228bc615e2870cbc4394bef0ab3cb9d (diff)
downloadlua-language-server-2523bad318880bf7547f5d095fce4a681fe24a54.zip
更新emmy
Diffstat (limited to 'server/test/crossfile/definition.lua')
-rw-r--r--server/test/crossfile/definition.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/server/test/crossfile/definition.lua b/server/test/crossfile/definition.lua
index ee62345a..4e3a00ef 100644
--- a/server/test/crossfile/definition.lua
+++ b/server/test/crossfile/definition.lua
@@ -275,3 +275,37 @@ TEST {
]],
},
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@class Class
+ local <!obj!>
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ ---@type Class
+ local <?obj?>
+ ]]
+ },
+}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@type Class
+ local <?obj?>
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ ---@class Class
+ local <!obj!>
+ ]]
+ },
+}