diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-28 20:20:41 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-28 20:20:41 +0800 |
commit | d1274f277907b4b7e45dd018f5617708ea37636d (patch) | |
tree | d2a10cc5f7cc3aca34362f6cf24b67da377b4167 /server/test | |
parent | 0bc67627a4409a08e34be0b44cba928cdacf8192 (diff) | |
download | lua-language-server-d1274f277907b4b7e45dd018f5617708ea37636d.zip |
检查重复field
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/definition/emmy.lua | 2 | ||||
-rw-r--r-- | server/test/diagnostics/init.lua | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/server/test/definition/emmy.lua b/server/test/definition/emmy.lua index 937f1d70..ef7c1773 100644 --- a/server/test/definition/emmy.lua +++ b/server/test/definition/emmy.lua @@ -74,7 +74,7 @@ TEST [[ TEST [[ ---@class Class ----@field <!name!> string +---@field <!name string!> ---@field id integer local mt = {} mt.<?name?> diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua index 60c029bb..499ffe78 100644 --- a/server/test/diagnostics/init.lua +++ b/server/test/diagnostics/init.lua @@ -415,3 +415,14 @@ local function f(x, y) end f() ]] + +TEST [[ +---@field <!x Class!> +---@class Class +]] + +TEST [[ +---@class Class +---@field <!x!> Class +---@field <!x!> Class +]] |