diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-17 17:26:29 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-17 17:26:29 +0800 |
commit | 09f1cf4e0380437087536ec0d79eddae44a0e569 (patch) | |
tree | 2afacd3a1a8e9a5b630dbabb0c4115be59a8c5a2 /test/type_inference/init.lua | |
parent | be5ef0ab55f4cfa25c1a8a72c4f9df3c3adae16b (diff) | |
download | lua-language-server-09f1cf4e0380437087536ec0d79eddae44a0e569.zip |
fix infer by `string[]`
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r-- | test/type_inference/init.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 522c48f2..09f51b8e 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -2667,3 +2667,10 @@ end print(<?x?>) ]] + +TEST 'unknown' [[ +---@type string[] +local t + +local <?x?> = t.x +]] |