summaryrefslogtreecommitdiff
path: root/server/test/definition/emmy.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-20 10:26:59 +0800
committersumneko <sumneko@hotmail.com>2019-04-20 10:26:59 +0800
commit548a79bc67bb481945ea53e0e7197813b46c4f5d (patch)
tree5d22c61f6264df2bf8f82f9449041ab7e068b58e /server/test/definition/emmy.lua
parentffeb9df51d7f440c004d41522990c6ebbadcc569 (diff)
downloadlua-language-server-548a79bc67bb481945ea53e0e7197813b46c4f5d.zip
重新实现“转到定义”
Diffstat (limited to 'server/test/definition/emmy.lua')
-rw-r--r--server/test/definition/emmy.lua15
1 files changed, 13 insertions, 2 deletions
diff --git a/server/test/definition/emmy.lua b/server/test/definition/emmy.lua
index 8b6e8036..a98f334f 100644
--- a/server/test/definition/emmy.lua
+++ b/server/test/definition/emmy.lua
@@ -11,10 +11,21 @@ TEST [[
TEST [[
---@class A
local mt = {}
-function mt:<?cast?>()
+function mt:<!cast!>()
end
---@type A
local obj
-obj:<!cast!>()
+obj:<?cast?>()
]]
+
+--TEST [[
+-----@class A
+--local <!mt!> = {}
+--function mt:cast()
+--end
+--
+-----@type A
+--local obj
+--<?obj?>:cast()
+--]]