diff options
author | sumneko <sumneko@hotmail.com> | 2022-03-09 02:14:25 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-03-09 02:14:25 +0800 |
commit | 75df2fd38fe75e951ea80b5f1abae8772437ae04 (patch) | |
tree | 28e147e6fad887186424156421b2e31cc4a19fc9 /test | |
parent | 9fb4ddc94e72856a98239d6f519f70ebaae2f03f (diff) | |
download | lua-language-server-75df2fd38fe75e951ea80b5f1abae8772437ae04.zip |
update
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 10dcf145..5e47503f 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -199,29 +199,38 @@ TEST 'function' [[ ---@class stringlib local string -string.sub = function () end +string.xxx = function () end -return ('x').<?sub?> +return ('x').<?xxx?> +]] + +TEST 'function' [[ +---@class stringlib +String = {} + +String.xxx = function () end + +return ('x').<?xxx?> ]] TEST 'function' [[ ---@class stringlib local string -string.sub = function () end +string.xxx = function () end -<?x?> = ('x').sub +<?x?> = ('x').xxx ]] TEST 'function' [[ ---@class stringlib local string -string.sub = function () end +string.xxx = function () end _VERSION = 'Lua 5.4' -<?x?> = _VERSION.sub +<?x?> = _VERSION.xxx ]] TEST 'table' [[ |