diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-19 17:55:08 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-19 17:55:08 +0800 |
commit | ffeb9df51d7f440c004d41522990c6ebbadcc569 (patch) | |
tree | 1698ab520e6dfd3be74e60ce335973c31335076f /server/test/definition | |
parent | 02631f902a8230e173bd46dd83193c69e06bb7f1 (diff) | |
download | lua-language-server-ffeb9df51d7f440c004d41522990c6ebbadcc569.zip |
暂存一下:type共用通过merge value实现,还要标记global
Diffstat (limited to 'server/test/definition')
-rw-r--r-- | server/test/definition/emmy.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/test/definition/emmy.lua b/server/test/definition/emmy.lua index 5761d312..8b6e8036 100644 --- a/server/test/definition/emmy.lua +++ b/server/test/definition/emmy.lua @@ -7,3 +7,14 @@ TEST [[ ---@class <!A!> ---@type B|<?A?> ]] + +TEST [[ +---@class A +local mt = {} +function mt:<?cast?>() +end + +---@type A +local obj +obj:<!cast!>() +]] |