diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-07 00:07:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-07 00:07:28 +0800 |
commit | 01a09c66af04ab3e37d02782721c20bff8092e15 (patch) | |
tree | 5a2eb28be3c347f7e62772d24b0f16993ca36007 /test | |
parent | d1fd05ec4b174693827cc4cae68a0cac2583c599 (diff) | |
download | lua-language-server-01a09c66af04ab3e37d02782721c20bff8092e15.zip |
some fix
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 065109aa..11004e23 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -3576,3 +3576,21 @@ local t = { <?x?> = a(), } ]] + +TEST 'boolean' [[ +---@class A +---@field n number +---@field [string] boolean +local t + +local <?x?> = t.xx +]] + +TEST 'number' [[ +---@class A +---@field n number +---@field [string] boolean +local t + +local <?x?> = t.n +]] |