diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-06-13 20:20:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-06-13 20:20:46 +0800 |
commit | fa287e75c9d4ad2ebabc1a6ceec5bbc9393a33b8 (patch) | |
tree | a22dbd9116007d08efa48f77cea147af1502fb9d /test/diagnostics | |
parent | 4081b303684b95ec27fd833a1cd10978d4ad5e10 (diff) | |
download | lua-language-server-fa287e75c9d4ad2ebabc1a6ceec5bbc9393a33b8.zip |
bind overloads
fix #2083
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/type-check.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua index 18e7190d..dd9d1198 100644 --- a/test/diagnostics/type-check.lua +++ b/test/diagnostics/type-check.lua @@ -1255,6 +1255,14 @@ local var func(var) ]] +TEST [[ +---@class MyClass +---@overload fun(x : string) : MyClass +local MyClass = {} + +local w = MyClass(<!1!>) +]] + config.remove(nil, 'Lua.diagnostics.disable', 'unused-local') config.remove(nil, 'Lua.diagnostics.disable', 'unused-function') config.remove(nil, 'Lua.diagnostics.disable', 'undefined-global') |