diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-08 17:25:15 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-08 17:25:15 +0800 |
commit | 4945fdb9092ba9dbecf1dc419f444763b6202a65 (patch) | |
tree | 08498d43063a4db7e56068143cfa15e0c8e539dc /test | |
parent | 6bb4453489dc86547d967f35308783f5823547e0 (diff) | |
download | lua-language-server-4945fdb9092ba9dbecf1dc419f444763b6202a65.zip |
reducing guess
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index abc2f4bc..bad1a876 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1410,3 +1410,12 @@ local function f() end local _, <?x?> = f() ]] + +TEST 'unknown' [[ +local t = { + x = 1, + y = 2, +} + +local <?x?> = t[#t] +]] |